C# Class Unit.Tests.PerformanceCollectorMock

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

Méthodes publiques

Свойство Type Description
Sync object

Méthodes publiques

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

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

public Collect ( Exception>.Action onReadingFailure ) : double>>.IEnumerable
onReadingFailure Exception>.Action
Résultat double>>.IEnumerable

CreateCounter() public méthode

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

RefreshCounters() public méthode

public RefreshCounters ( ) : void
Résultat void

RefreshPerformanceCounter() public méthode

public RefreshPerformanceCounter ( PerformanceCounterData pcd ) : void
pcd Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.PerformanceCounterData
Résultat void

RegisterCounter() public méthode

public RegisterCounter ( string perfCounterName, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder ) : void
perfCounterName string
reportAs string
isCustomCounter bool
error string
blockCounterWithInstancePlaceHolder bool
Résultat void

Property Details

Sync public_oe property

public object Sync
Résultat object