C# 클래스 Microsoft.Azure.Networking.Infrastructure.RingMaster.Server.Session

Represents a session established with the server.
파일 보기 프로젝트 열기: Azure/RingMaster

공개 메소드들

메소드 설명
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