private void ConnectionListenerOnConnectionLost(object sender, ConnectionLostEventArgs args) { IRemoteClient remoteClient; if (_connectedClients.TryGetValue(args.Connection, out remoteClient)) { _connectedClients.Remove(args.Connection); OnClientDisconnected(new RemoteClientDisconnectedEventArgs(remoteClient)); } }
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); }