共用方式為


ResilienceHandler Class

Definition

Base class for resilience handler, i.e. handlers that use resilience strategies to send the requests.

public ref class ResilienceHandler : System::Net::Http::DelegatingHandler
public class ResilienceHandler : System.Net.Http.DelegatingHandler
type ResilienceHandler = class
    inherit DelegatingHandler
Public Class ResilienceHandler
Inherits DelegatingHandler
Inheritance

Constructors

ResilienceHandler(Func<HttpRequestMessage,ResiliencePipeline<HttpResponseMessage>>)

Initializes a new instance of the ResilienceHandler class.

ResilienceHandler(ResiliencePipeline<HttpResponseMessage>)

Initializes a new instance of the ResilienceHandler class.

Methods

Send(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as a synchronous operation.

SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

Applies to