コード例 #1
0
 /// <summary>
 /// Constructs a new callback and register it as unsuccessful response handler and exception handler on the
 /// configurable message handler.
 /// </summary>
 public ServerErrorCallback(ResumableUpload <TRequest> resumable)
 {
     this.Owner = resumable;
     Owner.Service.HttpClient.MessageHandler.UnsuccessfulResponseHandlers.Add(this);
     Owner.Service.HttpClient.MessageHandler.ExceptionHandlers.Add(this);
 }
コード例 #2
0
 /// <summary>
 /// Constructs a new callback and register it as unsuccessful response handler and exception handler on the
 /// configurable message handler.
 /// </summary>
 public ServerErrorCallback(ResumableUpload resumable)
 {
     this.Owner = resumable;
     Owner.HttpClient.MessageHandler.AddUnsuccessfulResponseHandler(this);
     Owner.HttpClient.MessageHandler.AddExceptionHandler(this);
 }
コード例 #3
0
 /// <summary>
 /// Constructs a new callback and register it as unsuccessful response handler and exception handler on the
 /// configurable message handler.
 /// </summary>
 public ServerErrorCallback(ResumableUpload resumable)
 {
     this.Owner = resumable;
 }