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

A receiver of CounterSamplesPackages. More...

Public Member Functions

 CounterSampleReceiver (ISocketReceiver socket, ICounterSampleReader reader)
 Initializes a new instance of the CounterSampleReceiver class. More...
 
 CounterSampleReceiver (ISocketReceiver socket, ProtocolType protocol)
 
void Publish (CounterSamplesPackage package)
 

Static Public Member Functions

static ICounterSampleReader CreateReader (ProtocolType protocol)
 

Public Attributes

readonly Channel< CounterSamplesPackageChannel = new Channel<CounterSamplesPackage>()
 A Channel for CounterSamplesPackages. More...
 

Events

EventHandler< CounterSamplesPackageOnCounterDataReceived
 This event is invoked when new CounterSamplesPackage are received. More...
 

Detailed Description

A receiver of CounterSamplesPackages.

Constructor & Destructor Documentation

ExitGames.Diagnostics.Monitoring.CounterSampleReceiver.CounterSampleReceiver ( ISocketReceiver  socket,
ICounterSampleReader  reader 
)
inline

Initializes a new instance of the CounterSampleReceiver class.

Parameters
socketThe receiver.
readerThe reader.
ExitGames.Diagnostics.Monitoring.CounterSampleReceiver.CounterSampleReceiver ( ISocketReceiver  socket,
ProtocolType  protocol 
)
inline

Member Function Documentation

static ICounterSampleReader ExitGames.Diagnostics.Monitoring.CounterSampleReceiver.CreateReader ( ProtocolType  protocol)
inlinestatic
void ExitGames.Diagnostics.Monitoring.CounterSampleReceiver.Publish ( CounterSamplesPackage  package)
inline

Member Data Documentation

readonly Channel<CounterSamplesPackage> ExitGames.Diagnostics.Monitoring.CounterSampleReceiver.Channel = new Channel<CounterSamplesPackage>()

A Channel for CounterSamplesPackages.

Event Documentation

EventHandler<CounterSamplesPackage> ExitGames.Diagnostics.Monitoring.CounterSampleReceiver.OnCounterDataReceived

This event is invoked when new CounterSamplesPackage are received.