X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web%2FProcessInfo.cs;h=3b73c01e94eae1350e1424e8c3b7a23827397fbb;hb=c1b39535fe0d5d1771b18f305a4d453ee944e04c;hp=9ff6eabe69acf020781e483175f31b27e7a887a8;hpb=5d9434fcb3acc1ed7d3d30603faae797d672fe65;p=mono.git diff --git a/mcs/class/System.Web/System.Web/ProcessInfo.cs b/mcs/class/System.Web/System.Web/ProcessInfo.cs index 9ff6eabe69a..3b73c01e94e 100644 --- a/mcs/class/System.Web/System.Web/ProcessInfo.cs +++ b/mcs/class/System.Web/System.Web/ProcessInfo.cs @@ -1,10 +1,10 @@ -// -// System.Web.ProcessInfo -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 +// +// System.Web.ProcessInfo +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2002 // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining @@ -28,90 +28,90 @@ // using System.Security.Permissions; - -namespace System.Web { + +namespace System.Web { // CAS [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] - public class ProcessInfo { - - #region Fields - - TimeSpan age; - int peakMemoryUsed; - int processID; - int requestCount; - ProcessShutdownReason shutdownReason; - DateTime startTime; - ProcessStatus status; - - #endregion - - #region Constructors - - public ProcessInfo () - { - } - - public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) - { - this.age = age; - this.peakMemoryUsed = peakMemoryUsed; - this.processID = processID; - this.requestCount = requestCount; - this.shutdownReason = shutdownReason; - this.startTime = startTime; - this.status = status; - } - - #endregion - - #region Properties - - public TimeSpan Age { - get { return age; } - } - - public int PeakMemoryUsed { - get { return peakMemoryUsed; } - } - - public int ProcessID { - get { return processID; } - } - - public int RequestCount { - get { return requestCount; } - } - - public ProcessShutdownReason ShutdownReason { - get { return shutdownReason; } - } - - public DateTime StartTime { - get { return startTime; } - } - - public ProcessStatus Status { - get { return status; } - } - - #endregion // Properties - - #region Methods - - public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) - { - this.age = age; - this.peakMemoryUsed = peakMemoryUsed; - this.processID = processID; - this.requestCount = requestCount; - this.shutdownReason = shutdownReason; - this.startTime = startTime; - this.status = status; - } - - #endregion // Methods - } -} + public class ProcessInfo { + + #region Fields + + TimeSpan age; + int peakMemoryUsed; + int processID; + int requestCount; + ProcessShutdownReason shutdownReason; + DateTime startTime; + ProcessStatus status; + + #endregion + + #region Constructors + + public ProcessInfo () + { + } + + public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) + { + this.age = age; + this.peakMemoryUsed = peakMemoryUsed; + this.processID = processID; + this.requestCount = requestCount; + this.shutdownReason = shutdownReason; + this.startTime = startTime; + this.status = status; + } + + #endregion + + #region Properties + + public TimeSpan Age { + get { return age; } + } + + public int PeakMemoryUsed { + get { return peakMemoryUsed; } + } + + public int ProcessID { + get { return processID; } + } + + public int RequestCount { + get { return requestCount; } + } + + public ProcessShutdownReason ShutdownReason { + get { return shutdownReason; } + } + + public DateTime StartTime { + get { return startTime; } + } + + public ProcessStatus Status { + get { return status; } + } + + #endregion // Properties + + #region Methods + + public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) + { + this.age = age; + this.peakMemoryUsed = peakMemoryUsed; + this.processID = processID; + this.requestCount = requestCount; + this.shutdownReason = shutdownReason; + this.startTime = startTime; + this.status = status; + } + + #endregion // Methods + } +}