PolicyHttpMessageHandler 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
PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)
Creates a new PolicyHttpMessageHandler.
public:
PolicyHttpMessageHandler(Polly::IAsyncPolicy<System::Net::Http::HttpResponseMessage ^> ^ policy);
public PolicyHttpMessageHandler (Polly.IAsyncPolicy<System.Net.Http.HttpResponseMessage> policy);
new Microsoft.Extensions.Http.PolicyHttpMessageHandler : Polly.IAsyncPolicy<System.Net.Http.HttpResponseMessage> -> Microsoft.Extensions.Http.PolicyHttpMessageHandler
Public Sub New (policy As IAsyncPolicy(Of HttpResponseMessage))
Parameters
- policy
- IAsyncPolicy<HttpResponseMessage>
The policy.
Applies to
PolicyHttpMessageHandler(Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>)
Creates a new PolicyHttpMessageHandler.
public:
PolicyHttpMessageHandler(Func<System::Net::Http::HttpRequestMessage ^, Polly::IAsyncPolicy<System::Net::Http::HttpResponseMessage ^> ^> ^ policySelector);
public PolicyHttpMessageHandler (Func<System.Net.Http.HttpRequestMessage,Polly.IAsyncPolicy<System.Net.Http.HttpResponseMessage>> policySelector);
new Microsoft.Extensions.Http.PolicyHttpMessageHandler : Func<System.Net.Http.HttpRequestMessage, Polly.IAsyncPolicy<System.Net.Http.HttpResponseMessage>> -> Microsoft.Extensions.Http.PolicyHttpMessageHandler
Public Sub New (policySelector As Func(Of HttpRequestMessage, IAsyncPolicy(Of HttpResponseMessage)))
Parameters
- policySelector
- Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>
A function which can select the desired policy for a given HttpRequestMessage.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.