C# Класс Microsoft.Azure.Networking.Infrastructure.RingMaster.Server.Session

Represents a session established with the server.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
MakeWatcher ( IWatcher watcher ) : IWatcher
ProcessRequest ( IRingMasterRequest request, Action onCompletion ) : void
SendWatcherNotification ( WatcherCall watcherCall ) : void

Sends the watcher notification

Описание методов

Close() публичный Метод

Closes this session
public Close ( ) : void
Результат void

OnPacketReceived() публичный Метод

Callback to be used by Connection.OnPacketReceived in secure transport
public OnPacketReceived ( Array packet ) : void
packet Array Packet received from the TCP connection
Результат void

Session() публичный Метод

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
Результат System