C# Class Microsoft.Azure.Commands.ResourceManager.Cmdlets.Handlers.RetryHandler

A basic retry handler.
Inheritance: System.Net.Http.DelegatingHandler
Datei anzeigen Open project: Azure/azure-powershell Class Usage Examples

Protected Methods

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

Add the authentication token to the outgoing request.

Private Methods

Method Description
GetDelay ( int attempt ) : System.TimeSpan

Gets the delay for the task following an exponential back-off strategy

Method Details

SendAsync() protected method

Add the authentication token to the outgoing request.
protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage The HTTP request message.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task