Photon Server API
Static Public Member Functions | List of all members
ExitGames.Diagnostics.Monitoring.CounterFactory Class Reference

Provides methods to create ICounter instances. More...

Static Public Member Functions

static ICounter TryCreateWindowsCounter (string name, string performanceCounterCategory, string performanceCounterName)
 Tries the create windows counter. More...
 
static ICounter TryCreateWindowsCounter (string name, string performanceCounterCategory, string performanceCounterName, string performanceCounterInstance)
 Tries to create a ICounter wrapper for an PerformanceCounter. More...
 

Detailed Description

Provides methods to create ICounter instances.

Member Function Documentation

static ICounter ExitGames.Diagnostics.Monitoring.CounterFactory.TryCreateWindowsCounter ( string  name,
string  performanceCounterCategory,
string  performanceCounterName 
)
inlinestatic

Tries the create windows counter.

Parameters
nameThe name.
performanceCounterCategoryThe performance counter category.
performanceCounterNameName of the performance counter.
Returns
If the performance counter creation succeds an instance of WindowsPerformanceCounter is returned, otherwise an instance of DummyCounter is returned.
static ICounter ExitGames.Diagnostics.Monitoring.CounterFactory.TryCreateWindowsCounter ( string  name,
string  performanceCounterCategory,
string  performanceCounterName,
string  performanceCounterInstance 
)
inlinestatic

Tries to create a ICounter wrapper for an PerformanceCounter.

Parameters
nameThe counter name.
performanceCounterCategoryThe name of the performance counter category (performance object) with which this performance counter is associated.
performanceCounterNameThe name of the performance counter.
performanceCounterInstanceThe name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
Returns
If the performance counter creation succeds an instance of WindowsPerformanceCounter is returned, otherwise an instance of DummyCounter is returned.