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

Manages performance counters using Windows performance counters.
Inheritance: IPerformanceCounterManager
Afficher le fichier Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript Class Usage Examples

Private Properties

Свойство Type Description
GetCounterPropertyInfo System.Reflection.PropertyInfo[]
GetPerformanceCounterAttribute PerformanceCounterAttribute
InitNoOpCounters void
LoadCounter IPerformanceCounter
LoadCounter IPerformanceCounter
SanitizeInstanceName string
SetCounterProperties void
UnloadCounters void

Méthodes publiques

Méthode Description
Initialize ( string instanceName, CancellationToken hostShutdownToken ) : void

Initializes the performance counters.

PerformanceCounterManager ( ILoggerFactory loggerFactory ) : System

Creates a new instance.

Private Methods

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

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.
Résultat void

PerformanceCounterManager() public méthode

Creates a new instance.
public PerformanceCounterManager ( ILoggerFactory loggerFactory ) : System
loggerFactory ILoggerFactory
Résultat System