Example #1
0
 internal void OnDisconnectedInternal(TcpSession session)
 {
     this.OnDisconnected(session);
 }
Example #2
0
 internal void OnDisconnectingInternal(TcpSession session)
 {
     this.OnDisconnecting(session);
 }
Example #3
0
 /// <summary>
 /// Handle session connecting notification.
 /// </summary>
 /// <param name="session">Connecting session.</param>
 protected virtual void OnConnecting(TcpSession session)
 {
 }
Example #4
0
 /// <summary>
 /// Handle session disconnected notification.
 /// </summary>
 /// <param name="session">Disconnected session.</param>
 protected virtual void OnDisconnected(TcpSession session)
 {
 }
Example #5
0
 /// <summary>
 /// Register a new session.
 /// </summary>
 /// <param name="session">Session to register.</param>
 internal void RegisterSession(TcpSession session)
 {
     // Register a new session
     this.Sessions.TryAdd(session.Id, session);
 }