Ejemplo n.º 1
0
 private void ConnectionClosed(object sender, ConnectionClosingEventArgs e)
 {
     lock (_locker)
     {
         _clients.Remove(e.Client);
     }
 }
        public virtual void TriggerClosing(MessageConnection connection,
                                           ConnectionClosingEventArgs e)
        {
            ConnectionClosingEventHandler handler = this.ConnectionClosing;

            if (handler != null)
            {
                handler(connection, e);
            }
        }
Ejemplo n.º 3
0
        private void OnSessionClosing(object sender, ConnectionClosingEventArgs args)
        {
            var session = (IServerSession)sender;

            _logger.Debug(@"Session #{0} closing: {1}", session.NetworkSessionId, args.Reason);
        }
Ejemplo n.º 4
0
        private void OnSessionClosing(object sender, ConnectionClosingEventArgs e)
        {
            OnClosing();

            Closing?.Invoke(this, e);
        }
Ejemplo n.º 5
0
        private void ConnectionClosed()
        {
            var args = new ConnectionClosingEventArgs(this);

            ConnectionClosing?.Invoke(this, args);
        }