C# Class WebApplications.Utilities.Performance.RegionTimer

Inheritance: IDisposable
Afficher le fichier Open project: webappsuk/CoreLibraries Class Usage Examples

Méthodes publiques

Свойство Type Description
CriticalDuration System.Duration
Started Instant
WarningDuration System.Duration

Méthodes publiques

Méthode 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 méthode

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
Résultat void

RegionTimer() public méthode

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.
Résultat System

Property Details

CriticalDuration public_oe property

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

Started public_oe property

When the timer started.
public Instant Started
Résultat Instant

WarningDuration public_oe property

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