C# Class WebApplications.Utilities.Performance.RegionTimer

Inheritance: IDisposable
Exibir arquivo Open project: webappsuk/CoreLibraries Class Usage Examples

Public Properties

Property Type Description
CriticalDuration System.Duration
Started Instant
WarningDuration System.Duration

Public Methods

Method Description
Dispose ( ) : void

Disposes the timer updating the performance counters the first time this is called.

Following disposal, the public properties of this type remain safely accessible.

RegionTimer ( [ onDisposed = null, System.Duration warningDuration = null, System.Duration criticalDuration = null ) : System

Initializes a new instance of the RegionTimer class.

Method Details

Dispose() public method

Disposes the timer updating the performance counters the first time this is called.

Following disposal, the public properties of this type remain safely accessible.

public Dispose ( ) : void
return void

RegionTimer() public method

Initializes a new instance of the RegionTimer class.
public RegionTimer ( [ onDisposed = null, System.Duration warningDuration = null, System.Duration criticalDuration = null ) : System
onDisposed [ The disposed delegate is called once on disposal.
warningDuration System.Duration Duration of the warning.
criticalDuration System.Duration Duration of the critical.
return System

Property Details

CriticalDuration public_oe property

The duration after which the timer has passed a critical level, or .
public Duration,System CriticalDuration
return System.Duration

Started public_oe property

When the timer started.
public Instant Started
return Instant

WarningDuration public_oe property

The duration after which the timer has passed a warning level, or .
public Duration,System WarningDuration
return System.Duration