ProcessInfo

ProcessInfo

System.Web (system.web.dll)class

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); }

Returned By

ProcessModelInfo.{GetCurrentProcessInfo( ), GetHistory( )}



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net