public String GetProcessStatus( ProcessStatus ps ) { String s = "Unknown"; if( ps == ProcessStatus.Alive ) s = "Alive"; else if( ps == ProcessStatus.ShuttingDown ) s = "Shutting Down"; else if( ps == ProcessStatus.ShutDown ) s = "Shutdown"; else if( ps == ProcessStatus.Terminated ) s = "Terminated"; return s; }
public String GetShutdownReason( ProcessShutdownReason psr ) { String s = "Unknown"; if( psr == ProcessShutdownReason.None ) s = "N/A"; else if( psr == ProcessShutdownReason.Unexpected ) s = "Unexpected"; else if( psr == ProcessShutdownReason.RequestsLimit ) s = "Requests Limit"; else if( psr == ProcessShutdownReason.RequestQueueLimit ) s = "Request Queue Limit"; else if( psr == ProcessShutdownReason.Timeout ) s = "Timeout"; else if( psr == ProcessShutdownReason.IdleTimeout ) s = "Idle Timeout"; else if( psr == ProcessShutdownReason.MemoryLimitExceeded ) s = "Memory Limit Exceeded"; return s; } </script>