C# Class NBench.PerformanceCounters.Collection.PerformanceCounterProxy

Concrete implementation of IPerformanceCounterProxy that recreates the underlying PerformanceCounter on fault up to a maxmium limit. NOT THREAD SAFE.
Inheritance: IPerformanceCounterProxy
Afficher le fichier Open project: petabridge/NBench Class Usage Examples

Méthodes publiques

Méthode Description
Collect ( ) : double

Return the raw value of the counter

Dispose ( ) : void
Dispose ( bool isDisposing ) : void
PerformanceCounterProxy ( Func counterFactory ) : System

Private Methods

Méthode Description
DisposeCounter ( ) : void
GetOrCreate ( ) : PerformanceCounter

Method Details

Collect() public méthode

Return the raw value of the counter
public Collect ( ) : double
Résultat double

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( bool isDisposing ) : void
isDisposing bool
Résultat void

PerformanceCounterProxy() public méthode

public PerformanceCounterProxy ( Func counterFactory ) : System
counterFactory Func
Résultat System