C# Class Microsoft.Azure.Networking.Infrastructure.RingMaster.Server.Session

Represents a session established with the server.
Datei anzeigen Open project: Azure/RingMaster

Public Methods

Method Description
Close ( ) : void

Closes this session

OnPacketReceived ( Array packet ) : void

Callback to be used by Connection.OnPacketReceived in secure transport

Session ( Microsoft.Azure.Networking.Infrastructure.RingMaster.Server.RingMasterServer server, ulong sessionId, Func onInitSession, IConnection connection, ICommunicationProtocol protocol, IRingMasterServerInstrumentation instrumentation ) : System

Initializes a new instance of the Session class.

Private Methods

Method Description
MakeWatcher ( IWatcher watcher ) : IWatcher
ProcessRequest ( IRingMasterRequest request, Action onCompletion ) : void
SendWatcherNotification ( WatcherCall watcherCall ) : void

Sends the watcher notification

Method Details

Close() public method

Closes this session
public Close ( ) : void
return void

OnPacketReceived() public method

Callback to be used by Connection.OnPacketReceived in secure transport
public OnPacketReceived ( Array packet ) : void
packet Array Packet received from the TCP connection
return void

Session() public method

Initializes a new instance of the Session class.
public Session ( Microsoft.Azure.Networking.Infrastructure.RingMaster.Server.RingMasterServer server, ulong sessionId, Func onInitSession, IConnection connection, ICommunicationProtocol protocol, IRingMasterServerInstrumentation instrumentation ) : System
server Microsoft.Azure.Networking.Infrastructure.RingMaster.Server.RingMasterServer Ring Master server object
sessionId ulong Session ID
onInitSession Func Callback when the session is initialized
connection IConnection Secure Transport connection object
protocol ICommunicationProtocol Protocol object for sending/receiving responses
instrumentation IRingMasterServerInstrumentation Instrumentation object
return System