C# Class Unit.Tests.PerformanceCollectorMock

Mock to test clients of PerformanceCollector.
Inheritance: IPerformanceCollector
Exibir arquivo Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Properties

Property Type Description
Sync object

Public Methods

Method Description
Collect ( Exception>.Action onReadingFailure ) : double>>.IEnumerable
CreateCounter ( string perfCounterName, bool &usesInstanceNamePlaceholder, string &error ) : PerformanceCounter
RefreshCounters ( ) : void
RefreshPerformanceCounter ( PerformanceCounterData pcd ) : void
RegisterCounter ( string perfCounterName, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder ) : void

Private Methods

Method Description
RegisterCounter ( string originalString, string reportAs, PerformanceCounter pc, bool isCustomCounter, bool usesInstanceNamePlaceholder, string &error ) : void
RegisterPerformanceCounter ( string originalString, string reportAs, string categoryName, string counterName, string instanceName, bool usesInstanceNamePlaceholder, bool isCustomCounter ) : void

Method Details

Collect() public method

public Collect ( Exception>.Action onReadingFailure ) : double>>.IEnumerable
onReadingFailure Exception>.Action
return double>>.IEnumerable

CreateCounter() public method

public CreateCounter ( string perfCounterName, bool &usesInstanceNamePlaceholder, string &error ) : PerformanceCounter
perfCounterName string
usesInstanceNamePlaceholder bool
error string
return System.Diagnostics.PerformanceCounter

RefreshCounters() public method

public RefreshCounters ( ) : void
return void

RefreshPerformanceCounter() public method

public RefreshPerformanceCounter ( PerformanceCounterData pcd ) : void
pcd Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.PerformanceCounterData
return void

RegisterCounter() public method

public RegisterCounter ( string perfCounterName, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder ) : void
perfCounterName string
reportAs string
isCustomCounter bool
error string
blockCounterWithInstancePlaceHolder bool
return void

Property Details

Sync public_oe property

public object Sync
return object