示例#1
0
 /// <summary>
 /// Add an unsuccessful response handler for this request only.
 /// </summary>
 /// <param name="handler">The unsuccessful response handler. Must not be <c>null</c>.</param>
 public void AddExecuteInterceptor(IHttpExecuteInterceptor handler)
 {
     handler.ThrowIfNull(nameof(handler));
     if (_executeInterceptors == null)
     {
         _executeInterceptors = new List <IHttpExecuteInterceptor>();
     }
     _executeInterceptors.Add(handler);
 }