Exemplo n.º 1
0
 /// <summary>Initializes an instance of <see cref="NamedPipeListenerErrorEventArgs" /> with the specified <paramref name="errorType" /> and <paramref name="exception" />.</summary>
 /// <param name="errorType">A <see cref="NamedPipeListenerErrorType" /> describing the part of the listener process where the error was caught.</param>
 /// <param name="ex">The <see cref="Exception" /> that was thrown.</param>
 public NamedPipeListenerErrorEventArgs(NamedPipeListenerErrorType errorType, Exception ex)
 {
     this.ErrorType = errorType;
     this.Exception = ex;
 }
Exemplo n.º 2
0
 private void OnError(NamedPipeListenerErrorType errorType, Exception ex)
 {
     this.OnError(new NamedPipeListenerErrorEventArgs(errorType, ex));
 }