示例#1
0
        /// <summary>
        /// Create new instance of <see cref="RetryHttpHandler"/>
        /// </summary>
        /// <param name="httpRetryOptions">Retry options.</param>
        protected HttpRetryHandler(HttpRetryOptions httpRetryOptions)
        {
            this.HttpRetryOptions = httpRetryOptions ?? HttpRetryOptions.DefaultHttpRetryOptions;

            this.HandlerName = this.GetType().Name;
            this.TotalDelayAppliedHttpHeaderName = $"{HttpRetryHandler.TotalDelayApplied}-{this.HandlerName}";
            this.RetryAttemptHttpHeaderName      = $"{HttpRetryHandler.RetryAttempt}-{this.HandlerName}";
        }
示例#2
0
 public Task <DurableHttpResponse> CallHttpAsync(HttpMethod method, Uri uri, string content = null,
                                                 HttpRetryOptions retryOptions = null) =>
 CallHttpAsync(new DurableHttpRequest(method, uri, content: content, httpRetryOptions: retryOptions));
 /// <summary>
 /// Create instance of <see cref="HttpThrottlingHandler"/>
 /// </summary>
 /// <param name="retryOptions">Retry options.</param>
 public HttpThrottlingHandler(HttpRetryOptions retryOptions = null)
     : base(retryOptions)
 {
 }
示例#4
0
 /// <summary>
 /// Create new instance of <see cref="AuthZHttpHandler"/>
 /// </summary>
 /// <param name="retryOptions"></param>
 public HttpAuthZHandler(HttpRetryOptions retryOptions = null)
     : base(retryOptions)
 {
 }