Skip to main content

ResQ.Clients.BaseServiceClient

BaseServiceClient.ExecuteWithResilienceAsync(HttpMethod, Func<CancellationToken,Task<HttpResponseMessage>>, CancellationToken) Method

Executes an HTTP request with a resilience policy appropriate for the HTTP method.
protected System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> ExecuteWithResilienceAsync(System.Net.Http.HttpMethod method, System.Func<System.Threading.CancellationToken,System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> action, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

method System.Net.Http.HttpMethod action System.Func<System.Threading.CancellationToken,System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>> cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>