C# Class ResumeBot.Services.HttpRetryHandler

Inheritance: System.Net.Http.DelegatingHandler
Mostrar archivo Open project: takenet/messaginghub-docs

Public Methods

Method Description
HttpRetryHandler ( HttpMessageHandler innerHandler, int maxRetries ) : System

Protected Methods

Method Description
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Private Methods

Method Description
IsClientFailure ( HttpStatusCode statusCode ) : bool

Method Details

HttpRetryHandler() public method

public HttpRetryHandler ( HttpMessageHandler innerHandler, int maxRetries ) : System
innerHandler System.Net.Http.HttpMessageHandler
maxRetries int
return System

SendAsync() protected method

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
return Task