Exemplo n.º 1
0
        private void OnClientDisconnected(ConnectableBase sender, DisconnectedEventArgs e)
        {
            try {
                DisconnectClient(e.Client);
            } catch { }

            OnDisconnected(this, e);
        }
 /// <summary>
 ///     Raises the <see cref="Disconnected"/> event
 /// </summary>
 /// <param name="sender">The <see cref="ConnectableBase"/> raising this event.</param>
 /// <param name="e">An <see cref="EventArgs"/> that contains the event data.</param>
 protected virtual void OnDisconnected(ConnectableBase sender, DisconnectedEventArgs e)
 {
     Disconnected?.Invoke(sender, e);
 }