Condividi tramite


ResilienceHandler Constructors

Definition

Overloads

ResilienceHandler(ResiliencePipeline<HttpResponseMessage>)

Initializes a new instance of the ResilienceHandler class.

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

Initializes a new instance of the ResilienceHandler class.

ResilienceHandler(ResiliencePipeline<HttpResponseMessage>)

Source:
ResilienceHandler.cs
Source:
ResilienceHandler.cs

Initializes a new instance of the ResilienceHandler class.

public:
 ResilienceHandler(Polly::ResiliencePipeline<System::Net::Http::HttpResponseMessage ^> ^ pipeline);
public ResilienceHandler (Polly.ResiliencePipeline<System.Net.Http.HttpResponseMessage> pipeline);
new Microsoft.Extensions.Http.Resilience.ResilienceHandler : Polly.ResiliencePipeline<System.Net.Http.HttpResponseMessage> -> Microsoft.Extensions.Http.Resilience.ResilienceHandler
Public Sub New (pipeline As ResiliencePipeline(Of HttpResponseMessage))

Parameters

pipeline
Polly.ResiliencePipeline<HttpResponseMessage>

The pipeline to use for the message.

Exceptions

If pipeline is null.

Applies to

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

Source:
ResilienceHandler.cs
Source:
ResilienceHandler.cs

Initializes a new instance of the ResilienceHandler class.

public:
 ResilienceHandler(Func<System::Net::Http::HttpRequestMessage ^, Polly::ResiliencePipeline<System::Net::Http::HttpResponseMessage ^> ^> ^ pipelineProvider);
public ResilienceHandler (Func<System.Net.Http.HttpRequestMessage,Polly.ResiliencePipeline<System.Net.Http.HttpResponseMessage>> pipelineProvider);
new Microsoft.Extensions.Http.Resilience.ResilienceHandler : Func<System.Net.Http.HttpRequestMessage, Polly.ResiliencePipeline<System.Net.Http.HttpResponseMessage>> -> Microsoft.Extensions.Http.Resilience.ResilienceHandler
Public Sub New (pipelineProvider As Func(Of HttpRequestMessage, ResiliencePipeline(Of HttpResponseMessage)))

Parameters

pipelineProvider
Func<HttpRequestMessage,Polly.ResiliencePipeline<HttpResponseMessage>>

The pipeline provider that supplies pipelines in response to an http message.

Exceptions

If pipelineProvider is null.

Applies to