Beispiel #1
0
        private void OnCloseConnection(object sender, ConnectionCloseEventArgs e)
        {
            var connection = (IConnection)sender;

            connection.Closed -= CloseConnection;
            EventRaiser.SoftRaiseEvent(CloseConnection, this, e);
            connectionListenerMap.Remove(connection.Id);
        }
Beispiel #2
0
 private void ConnectionClosed(object sender, ConnectionCloseEventArgs e)
 {
     e.Connection.Closed -= ConnectionClosed;
     connections.Remove(e.Connection.Id);
 }