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 で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET