示例#1
0
 /// <summary>
 /// Sets a callback to use to use when a request is intercepted.
 /// </summary>
 /// <param name="onIntercepted">A delegate to a method to call when a request is intercepted.</param>
 /// <returns>
 /// The current <see cref="HttpRequestInterceptionBuilder"/>.
 /// </returns>
 public HttpRequestInterceptionBuilder WithInterceptionCallback(Action <HttpRequestMessage> onIntercepted)
 {
     _onIntercepted = DelegateHelpers.ConvertToBooleanTask(onIntercepted);
     return(this);
 }