Class PollyDelegatingHandler
Namespace: Workspace.XBR.Xperiflow.Utilities.Retry
Assembly: Xperiflow.dll
Declaration
public class PollyDelegatingHandler : DelegatingHandler, IDisposable
Inheritance: System.Object -> System.Net.Http.HttpMessageHandler -> System.Net.Http.DelegatingHandler
Implements:
System.IDisposable
Methods
SendAsync(HttpRequestMessage, CancellationToken)
Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
Declaration
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Returns
Task<System.Net.Http.HttpResponseMessage>
The task object representing the asynchronous operation.
Parameters
| Type | Name | Description |
|---|---|---|
System.Net.Http.HttpRequestMessage | request | The HTTP request message to send to the server. |
System.Threading.CancellationToken | cancellationToken | A cancellation token to cancel operation. |
Exceptions
System.ArgumentNullException
The request was null.
Implements
System.IDisposable
Inherited Members
System.Net.Http.DelegatingHandler.Dispose(System.Boolean)System.Net.Http.DelegatingHandler.Send(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)System.Net.Http.DelegatingHandler.InnerHandlerSystem.Net.Http.HttpMessageHandler.DisposeSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString