ResilienceHandler Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.