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
Show file Open project: petabridge/NBench Class Usage Examples

Public Methods

Method Description
Collect ( ) : double

Return the raw value of the counter

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

Private Methods

Method Description
DisposeCounter ( ) : void
GetOrCreate ( ) : PerformanceCounter

Method Details

Collect() public method

Return the raw value of the counter
public Collect ( ) : double
return double

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool isDisposing ) : void
isDisposing bool
return void

PerformanceCounterProxy() public method

public PerformanceCounterProxy ( Func counterFactory ) : System
counterFactory Func
return System