Photon Server API Documentation v5.0RC1

Public Member Functions | List of all members
Photon.SocketServer.Diagnostics.Counters.ICounterProvider Interface Reference
Inheritance diagram for Photon.SocketServer.Diagnostics.Counters.ICounterProvider:
Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper Photon.SocketServer.Diagnostics.Counters.Wrappers.PerformanceCounterWrapper Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper

Public Member Functions

object CreateCounter (PerfCounterAttribute counterAttribute, PerfCounterCategoryAttribute categoryAttribute, string instanceName, bool touch)
 Create counte instance by type and params. More...
 
CounterCreationDataCollection GetCounterCreationData (PerfCounterAttribute attribute)
 Returns counter counter creation data based on PerfCounterAttribute More...
 
object CreateFakeCounter ()
 Create simple fake(null) counter that are not backed up by any real windows counters in case we don't have permissions or disabled real counters More...
 

Member Function Documentation

◆ CreateCounter()

object Photon.SocketServer.Diagnostics.Counters.ICounterProvider.CreateCounter ( PerfCounterAttribute  counterAttribute,
PerfCounterCategoryAttribute  categoryAttribute,
string  instanceName,
bool  touch 
)

Create counte instance by type and params.

Parameters
counterAttribute
categoryAttribute
instanceName
touchProbe created counter with PerformanceCounter.NextValue so counter instance will be created in netcore
Returns

Implemented in Photon.SocketServer.Diagnostics.Counters.Wrappers.PerformanceCounterWrapper, Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper, and Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.

◆ CreateFakeCounter()

object Photon.SocketServer.Diagnostics.Counters.ICounterProvider.CreateFakeCounter ( )

Create simple fake(null) counter that are not backed up by any real windows counters in case we don't have permissions or disabled real counters

Returns

Implemented in Photon.SocketServer.Diagnostics.Counters.Wrappers.PerformanceCounterWrapper, Photon.SocketServer.Diagnostics.Counters.Wrappers.PerSecondCounterWrapper, and Photon.SocketServer.Diagnostics.Counters.Wrappers.AverageCounterWrapper.

◆ GetCounterCreationData()

CounterCreationDataCollection Photon.SocketServer.Diagnostics.Counters.ICounterProvider.GetCounterCreationData ( PerfCounterAttribute  attribute)