C# Class Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager

Manages performance counters using Windows performance counters.
Inheritance: IPerformanceCounterManager
Show file Open project: SignalR/SignalR Class Usage Examples

Private Properties

Property Type Description
GetCounterPropertyInfo System.Reflection.PropertyInfo[]
GetPerformanceCounterAttribute PerformanceCounterAttribute
InitNoOpCounters void
LoadCounter IPerformanceCounter
LoadCounter IPerformanceCounter
SanitizeInstanceName string
SetCounterProperties void
UnloadCounters void

Public Methods

Method Description
Initialize ( string instanceName, CancellationToken hostShutdownToken ) : void

Initializes the performance counters.

PerformanceCounterManager ( ) : System
PerformanceCounterManager ( DefaultDependencyResolver resolver ) : System
PerformanceCounterManager ( ITraceManager traceManager ) : System

Creates a new instance.

Private Methods

Method Description
GetCounterPropertyInfo ( ) : System.Reflection.PropertyInfo[]
GetPerformanceCounterAttribute ( PropertyInfo property ) : PerformanceCounterAttribute
InitNoOpCounters ( ) : void
LoadCounter ( string categoryName, string counterName, bool isReadOnly ) : IPerformanceCounter
LoadCounter ( string categoryName, string counterName, string instanceName, bool isReadOnly ) : IPerformanceCounter
SanitizeInstanceName ( string instanceName ) : string
SetCounterProperties ( ) : void
UnloadCounters ( ) : void

Method Details

Initialize() public method

Initializes the performance counters.
public Initialize ( string instanceName, CancellationToken hostShutdownToken ) : void
instanceName string The host instance name.
hostShutdownToken System.Threading.CancellationToken The CancellationToken representing the host shutdown.
return void

PerformanceCounterManager() public method

public PerformanceCounterManager ( ) : System
return System

PerformanceCounterManager() public method

public PerformanceCounterManager ( DefaultDependencyResolver resolver ) : System
resolver DefaultDependencyResolver
return System

PerformanceCounterManager() public method

Creates a new instance.
public PerformanceCounterManager ( ITraceManager traceManager ) : System
traceManager ITraceManager
return System