/// <summary> /// Raise the Connected event. /// </summary> /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param> private void OnConnected(TcpConnectionEventArgs e) { if (Connected != null) { Connected(this, e); } }
/// <summary> /// Raise the Disconnected event. /// </summary> /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param> private void OnDisconnected(TcpConnectionEventArgs e) { if (Disconnected != null) { Disconnected(this, e); } }
/// <summary> /// Raise the Disconnected event. /// </summary> /// <param name="sender"></param> /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param> private void OnDisconnected(object sender, TcpConnectionEventArgs e) { if (Disconnected != null) { CloseConnection(e.Connection); Disconnected(this, e); } }
/// <summary> /// Raise the Disconnected event. /// </summary> /// <param name="sender"></param> /// <param name="e">An <see cref="TcpConnectionEventArgs"/> object that contains the event data.</param> private void OnDisconnected(object sender, TcpConnectionEventArgs e) { if (Disconnected != null) { Disconnected(this, e); } }