private void ConnectionListenerOnConnectionLost(object sender, ConnectionLostEventArgs args)
 {
     IRemoteClient remoteClient;
     if (_connectedClients.TryGetValue(args.Connection, out remoteClient)) {
         _connectedClients.Remove(args.Connection);
         OnClientDisconnected(new RemoteClientDisconnectedEventArgs(remoteClient));
     }
 }
예제 #2
0
        protected virtual void OnConnectionLost(ConnectionLostEventArgs e)
        {
            EventHandler <ConnectionLostEventArgs> handler = ConnectionLost;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 protected virtual void OnConnectionLost(ConnectionLostEventArgs e)
 {
     EventHandler<ConnectionLostEventArgs> handler = ConnectionLost;
     if (handler != null) handler(this, e);
 }