Exemple #1
0
 /// <summary>
 /// Handle session disconnected notification
 /// </summary>
 /// <param name="session">Disconnected session</param>
 protected virtual void OnDisconnected(CsTcpSession session)
 {
 }
Exemple #2
0
 internal void OnDisconnectedInternal(CsTcpSession session)
 {
     OnDisconnected(session);
 }
Exemple #3
0
 /// <summary>
 /// Register a new session
 /// </summary>
 /// <param name="session">Session to register</param>
 internal void RegisterSession(CsTcpSession session)
 {
     // Register a new session
     _sessions.TryAdd(session.Id, session);
 }