Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / ProcessInfo.cs / 1 / ProcessInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * ProcessInfo class */ namespace System.Web { using System.Threading; using System.Security.Permissions; ////// public enum ProcessStatus { ///Provides enumerated values representing status of a process. ////// Alive = 1, ///Specifies that the process is running. ////// ShuttingDown = 2, ///Specifies that the process has begun shutting down. ////// ShutDown = 3, ///Specifies the the process has been shut down. ////// Terminated = 4 } ///Specifies that the process has been terminated. ////// public enum ProcessShutdownReason { ///Provides enumerated values representing the reason a process has shut /// down. ////// None = 0, // alive ///Specifies that the process has not been shut down. ////// Unexpected = 1, ///Specifies that the process has been shut down unexpectedly. ////// RequestsLimit = 2, ///Specifies that the process request exceeded the limit on number of /// processes. ////// RequestQueueLimit = 3, ///Specifies that the process request exceeded the limit on number of /// processes in que. ////// Timeout = 4, ///Specifies that the process timed out. ////// IdleTimeout = 5, ///Specifies that the process exceeded the limit on process idle time. ////// MemoryLimitExceeded = 6, PingFailed = 7, DeadlockSuspected = 8 } ///Specifies that the process exceeded the limit of memory available per process. ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ProcessInfo { ///Provides information on processes. ////// public DateTime StartTime { get { return _StartTime;}} ///Indicates the time a process was started. ////// public TimeSpan Age { get { return _Age;}} ///Indicates the length of time the process has been running. ////// public int ProcessID { get { return _ProcessID;}} public int RequestCount { get { return _RequestCount;}} ///Indicates the process id of the process. ////// public ProcessStatus Status { get { return _Status;}} ///Indicates the current status of the process. ////// public ProcessShutdownReason ShutdownReason { get { return _ShutdownReason;}} ///Indicates the reason the process shut down. ////// public int PeakMemoryUsed { get { return _PeakMemoryUsed;}} private DateTime _StartTime; private TimeSpan _Age; private int _ProcessID; private int _RequestCount; private ProcessStatus _Status; private ProcessShutdownReason _ShutdownReason; private int _PeakMemoryUsed; ///Indicates the maximum amount of memory the process has used. ////// public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) { _StartTime = startTime; _Age = age; _ProcessID = processID; _RequestCount = requestCount; _Status = status; _ShutdownReason = shutdownReason; _PeakMemoryUsed = peakMemoryUsed; } ///Sets internal information indicating the status of the process. ////// public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) { _StartTime = startTime; _Age = age; _ProcessID = processID; _RequestCount = requestCount; _Status = status; _ShutdownReason = shutdownReason; _PeakMemoryUsed = peakMemoryUsed; } public ProcessInfo() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Initializes a new instance of the ///class and sets internal information /// indicating the status of the process. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * ProcessInfo class */ namespace System.Web { using System.Threading; using System.Security.Permissions; ////// public enum ProcessStatus { ///Provides enumerated values representing status of a process. ////// Alive = 1, ///Specifies that the process is running. ////// ShuttingDown = 2, ///Specifies that the process has begun shutting down. ////// ShutDown = 3, ///Specifies the the process has been shut down. ////// Terminated = 4 } ///Specifies that the process has been terminated. ////// public enum ProcessShutdownReason { ///Provides enumerated values representing the reason a process has shut /// down. ////// None = 0, // alive ///Specifies that the process has not been shut down. ////// Unexpected = 1, ///Specifies that the process has been shut down unexpectedly. ////// RequestsLimit = 2, ///Specifies that the process request exceeded the limit on number of /// processes. ////// RequestQueueLimit = 3, ///Specifies that the process request exceeded the limit on number of /// processes in que. ////// Timeout = 4, ///Specifies that the process timed out. ////// IdleTimeout = 5, ///Specifies that the process exceeded the limit on process idle time. ////// MemoryLimitExceeded = 6, PingFailed = 7, DeadlockSuspected = 8 } ///Specifies that the process exceeded the limit of memory available per process. ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ProcessInfo { ///Provides information on processes. ////// public DateTime StartTime { get { return _StartTime;}} ///Indicates the time a process was started. ////// public TimeSpan Age { get { return _Age;}} ///Indicates the length of time the process has been running. ////// public int ProcessID { get { return _ProcessID;}} public int RequestCount { get { return _RequestCount;}} ///Indicates the process id of the process. ////// public ProcessStatus Status { get { return _Status;}} ///Indicates the current status of the process. ////// public ProcessShutdownReason ShutdownReason { get { return _ShutdownReason;}} ///Indicates the reason the process shut down. ////// public int PeakMemoryUsed { get { return _PeakMemoryUsed;}} private DateTime _StartTime; private TimeSpan _Age; private int _ProcessID; private int _RequestCount; private ProcessStatus _Status; private ProcessShutdownReason _ShutdownReason; private int _PeakMemoryUsed; ///Indicates the maximum amount of memory the process has used. ////// public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) { _StartTime = startTime; _Age = age; _ProcessID = processID; _RequestCount = requestCount; _Status = status; _ShutdownReason = shutdownReason; _PeakMemoryUsed = peakMemoryUsed; } ///Sets internal information indicating the status of the process. ////// public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status, ProcessShutdownReason shutdownReason, int peakMemoryUsed) { _StartTime = startTime; _Age = age; _ProcessID = processID; _RequestCount = requestCount; _Status = status; _ShutdownReason = shutdownReason; _PeakMemoryUsed = peakMemoryUsed; } public ProcessInfo() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Initializes a new instance of the ///class and sets internal information /// indicating the status of the process.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InsufficientMemoryException.cs
- MessageSecurityVersionConverter.cs
- TrayIconDesigner.cs
- SatelliteContractVersionAttribute.cs
- SecurityTokenValidationException.cs
- WorkflowEnvironment.cs
- SqlVersion.cs
- ipaddressinformationcollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- EntityContainerRelationshipSet.cs
- XsltFunctions.cs
- TimeStampChecker.cs
- WebServiceEnumData.cs
- LostFocusEventManager.cs
- ObjectDisposedException.cs
- COM2FontConverter.cs
- TextElementEnumerator.cs
- FileAuthorizationModule.cs
- initElementDictionary.cs
- AuthorizationContext.cs
- MemberMaps.cs
- Selector.cs
- UnSafeCharBuffer.cs
- xml.cs
- AggregateException.cs
- XamlInt32CollectionSerializer.cs
- CompiledScopeCriteria.cs
- BitmapEffectGeneralTransform.cs
- ComAwareEventInfo.cs
- DataGridSortCommandEventArgs.cs
- XmlAnyElementAttribute.cs
- PeerNearMe.cs
- TemplateBindingExpression.cs
- RequestCacheValidator.cs
- KnownTypesProvider.cs
- Pair.cs
- xml.cs
- FlowDocument.cs
- PresentationSource.cs
- SessionPageStatePersister.cs
- SmiTypedGetterSetter.cs
- invalidudtexception.cs
- CheckBoxPopupAdapter.cs
- SqlDependencyUtils.cs
- ResourceDefaultValueAttribute.cs
- EntityTypeEmitter.cs
- CacheMemory.cs
- recordstatescratchpad.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DiscriminatorMap.cs
- InputDevice.cs
- XPathNodeInfoAtom.cs
- WSHttpSecurity.cs
- InsufficientExecutionStackException.cs
- ConditionBrowserDialog.cs
- ContextMarshalException.cs
- FormViewUpdateEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- UniqueIdentifierService.cs
- PerspectiveCamera.cs
- WebPartCloseVerb.cs
- EntityDataSourceState.cs
- UserControlCodeDomTreeGenerator.cs
- XmlWrappingWriter.cs
- Stack.cs
- WebContext.cs
- DataGridViewCellValidatingEventArgs.cs
- RegistryConfigurationProvider.cs
- ToolboxControl.cs
- HwndProxyElementProvider.cs
- NetworkStream.cs
- SingletonChannelAcceptor.cs
- PageThemeParser.cs
- LocalizableResourceBuilder.cs
- RuleSetCollection.cs
- TextBlock.cs
- configsystem.cs
- ToolStripPanel.cs
- EasingKeyFrames.cs
- Stroke2.cs
- SizeFConverter.cs
- OdbcCommand.cs
- GeneratedCodeAttribute.cs
- ProcessModelInfo.cs
- FileSystemWatcher.cs
- SqlParameter.cs
- CqlQuery.cs
- WsdlBuildProvider.cs
- x509utils.cs
- UpdateEventArgs.cs
- InsufficientMemoryException.cs
- StateDesigner.LayoutSelectionGlyph.cs
- SqlCacheDependency.cs
- StreamGeometry.cs
- UseAttributeSetsAction.cs
- TextParaLineResult.cs
- JoinCqlBlock.cs
- ObjectStateFormatter.cs
- DelegateHelpers.Generated.cs
- SafeNativeMethods.cs