示例#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);
 }
 /// <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);
 }
 /// <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;
 }