-// \r
-// System.Web.ProcessInfo\r
-//\r
-// Author:\r
-// Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-
+//
+// 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
// a copy of this software and associated documentation files (the
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-namespace System.Web {\r
- public class ProcessInfo {\r
-\r
- #region Fields\r
-\r
- TimeSpan age;\r
- int peakMemoryUsed;\r
- int processID;\r
- int requestCount;\r
- ProcessShutdownReason shutdownReason;\r
- DateTime startTime;\r
- ProcessStatus status;\r
-\r
- #endregion\r
-\r
- #region Constructors\r
-\r
- public ProcessInfo ()\r
- {\r
- }\r
-\r
- public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed)\r
- {\r
- this.age = age;\r
- this.peakMemoryUsed = peakMemoryUsed;\r
- this.processID = processID;\r
- this.requestCount = requestCount;\r
- this.shutdownReason = shutdownReason;\r
- this.startTime = startTime;\r
- this.status = status;\r
- }\r
-\r
- #endregion\r
-\r
- #region Properties\r
-\r
- public TimeSpan Age {\r
- get { return age; }\r
- }\r
-\r
- public int PeakMemoryUsed {\r
- get { return peakMemoryUsed; }\r
- }\r
-\r
- public int ProcessID {\r
- get { return processID; }\r
- }\r
-\r
- public int RequestCount {\r
- get { return requestCount; }\r
- }\r
-\r
- public ProcessShutdownReason ShutdownReason {\r
- get { return shutdownReason; }\r
- }\r
-\r
- public DateTime StartTime {\r
- get { return startTime; }\r
- }\r
-\r
- public ProcessStatus Status {\r
- get { return status; }\r
- }\r
-\r
- #endregion // Properties\r
-\r
- #region Methods\r
-\r
- public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed)\r
- {\r
- this.age = age;\r
- this.peakMemoryUsed = peakMemoryUsed;\r
- this.processID = processID;\r
- this.requestCount = requestCount;\r
- this.shutdownReason = shutdownReason;\r
- this.startTime = startTime;\r
- this.status = status;\r
- }\r
-\r
- #endregion // Methods\r
- }\r
-}\r
+
+using System.Security.Permissions;
+
+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
+ }
+}