internal void OnDisconnectedInternal(SslSession session) { OnDisconnected(session); }
internal void OnHandshakedInternal(SslSession session) { OnHandshaked(session); }
internal void OnDisconnectingInternal(SslSession session) { OnDisconnecting(session); }
internal void OnHandshakingInternal(SslSession session) { OnHandshaking(session); }
/// <summary> /// Handle session disconnected notification /// </summary> /// <param name="session">Disconnected session</param> protected virtual void OnDisconnected(SslSession session) { }
/// <summary> /// Handle session handshaked notification /// </summary> /// <param name="session">Handshaked session</param> protected virtual void OnHandshaked(SslSession session) { }
/// <summary> /// Handle session connecting notification /// </summary> /// <param name="session">Connecting session</param> protected virtual void OnConnecting(SslSession session) { }
/// <summary> /// Register a new session /// </summary> /// <param name="session">Session to register</param> internal void RegisterSession(SslSession session) { // Register a new session session.Id = Interlocked.Increment(ref _sessionId); Sessions.TryAdd(session.Id, session); }