private void Socket_SendError(object sender, ErrorEventArgs e) { this.CloseSocket(); }
private void Socket_ReceiveError(object sender, ErrorEventArgs e) { this.HandleReadError(e.Exception); }
private void ConnectionErrorEventHandler(object sender, ErrorEventArgs e) { this.OnErrorOccurred(e); }
/// <summary> /// Fires the ErrorReceived event. /// </summary> /// <param name="e">An <see cref="ErrorEventArgs"/> that contains the event data.</param> protected void OnError(ErrorEventArgs e) { if (this.ErrorReceived != null) { this.ErrorReceived(this, e); } }
/// <summary> /// Raises the ErrorOccurred event. /// </summary> /// <param name="e">An <see cref="ErrorEventArgs"/> that contains the event data.</param> protected void OnErrorOccurred(ErrorEventArgs e) { if (this.ErrorOccurred != null) { this.ErrorOccurred(this, e); } }