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

Manages performance counters using Windows performance counters.
Inheritance: IPerformanceCounterManager
显示文件 Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript 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 ( ILoggerFactory loggerFactory ) : 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

Creates a new instance.
public PerformanceCounterManager ( ILoggerFactory loggerFactory ) : System
loggerFactory ILoggerFactory
return System