This class encapsulates information about the ASP.NET worker process
on the server. It is returned by the
ProcessModelInfo class. It includes properties
such as the time the process started (StartTime),
how long it has been running (Age), and the most
memory used so far in bytes (PeakMemoryUsed). The
Status property indicates the current state of a
process; the ShutdownReason property indicates why
the process was terminated, unless it is the current process.
public class ProcessInfo {
// Public Constructors
public ProcessInfo( );
public ProcessInfo(DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status,
ProcessShutdownReason shutdownReason, int peakMemoryUsed);
// Public Instance Properties
public TimeSpan Age{get; }
public int PeakMemoryUsed{get; }
public int ProcessID{get; }
public int RequestCount{get; }
public ProcessShutdownReason ShutdownReason{get; }
public DateTime StartTime{get; }
public ProcessStatus Status{get; }
// Public Instance Methods
public void SetAll(DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status,
ProcessShutdownReason shutdownReason, int peakMemoryUsed);
}