Example #1
0
 private void Socket_SendError(object sender, ErrorEventArgs e)
 {
     this.CloseSocket();
 }
Example #2
0
 private void Socket_ReceiveError(object sender, ErrorEventArgs e)
 {
     this.HandleReadError(e.Exception);
 }
Example #3
0
 private void ConnectionErrorEventHandler(object sender, ErrorEventArgs e)
 {
     this.OnErrorOccurred(e);
 }
Example #4
0
 /// <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);
     }
 }
Example #5
0
 /// <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);
     }
 }