C# Class NServiceBus.PerformanceCounterHelper

Mostrar archivo Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
InstantiatePerformanceCounter ( string counterName, string instanceName ) : PerformanceCounter
TryToInstantiatePerformanceCounter ( string counterName, string instanceName ) : IPerformanceCounterInstance

Private Methods

Method Description
TryToInstantiatePerformanceCounter ( string counterName, string instanceName, PerformanceCounter &counter, bool throwIfFails ) : bool

Method Details

InstantiatePerformanceCounter() public static method

public static InstantiatePerformanceCounter ( string counterName, string instanceName ) : PerformanceCounter
counterName string
instanceName string
return System.Diagnostics.PerformanceCounter

TryToInstantiatePerformanceCounter() public static method

public static TryToInstantiatePerformanceCounter ( string counterName, string instanceName ) : IPerformanceCounterInstance
counterName string
instanceName string
return IPerformanceCounterInstance