Photon Server API
Classes | Public Member Functions | Properties | List of all members
Photon.SocketServer.Diagnostics.CounterPublisher Class Reference

The counter publisher. More...

Public Member Functions

 CounterPublisher (CounterSamplePublisher publisher, CounterSampleSender sender)
 Initializes a new instance of the CounterPublisher class. More...
 
 CounterPublisher (CounterPublisherSettings settings)
 Initializes a new instance of the CounterPublisher class. More...
 
void AddCounter (ICounter counter, string name)
 The add counter. More...
 
void AddCounterClass (object counterClass)
 The add counter class. More...
 
void AddCounterClass (object counterClass, string nameSpace)
 The add counter class. More...
 
void AddStaticCounterClass (Type counterClass)
 The add static counter class. More...
 
void AddStaticCounterClass (Type counterClass, string nameSpace)
 The add static counter class. More...
 
void Start ()
 The start. More...
 

Properties

static CounterPublisher DefaultInstance [get]
 CounterPublisher default instance More...
 
bool Enabled [get]
 Gets Enabled. More...
 

Detailed Description

The counter publisher.

Constructor & Destructor Documentation

Photon.SocketServer.Diagnostics.CounterPublisher.CounterPublisher ( CounterSamplePublisher  publisher,
CounterSampleSender  sender 
)
inline

Initializes a new instance of the CounterPublisher class.

Parameters
publisher
sender
Photon.SocketServer.Diagnostics.CounterPublisher.CounterPublisher ( CounterPublisherSettings  settings)
inline

Initializes a new instance of the CounterPublisher class.

Parameters
settingsThe settings.

Member Function Documentation

void Photon.SocketServer.Diagnostics.CounterPublisher.AddCounter ( ICounter  counter,
string  name 
)
inline

The add counter.

Parameters
counterThe counter.
nameThe name.
void Photon.SocketServer.Diagnostics.CounterPublisher.AddCounterClass ( object  counterClass)
inline

The add counter class.

Parameters
counterClassThe counter class.
void Photon.SocketServer.Diagnostics.CounterPublisher.AddCounterClass ( object  counterClass,
string  nameSpace 
)
inline

The add counter class.

Parameters
counterClassThe counter class.
nameSpaceThe name space.
void Photon.SocketServer.Diagnostics.CounterPublisher.AddStaticCounterClass ( Type  counterClass)
inline

The add static counter class.

Parameters
counterClassThe counter class.
void Photon.SocketServer.Diagnostics.CounterPublisher.AddStaticCounterClass ( Type  counterClass,
string  nameSpace 
)
inline

The add static counter class.

Parameters
counterClassThe counter class.
nameSpaceThe name space.
void Photon.SocketServer.Diagnostics.CounterPublisher.Start ( )
inline

The start.

Property Documentation

CounterPublisher Photon.SocketServer.Diagnostics.CounterPublisher.DefaultInstance
staticget

CounterPublisher default instance

bool Photon.SocketServer.Diagnostics.CounterPublisher.Enabled
get

Gets Enabled.