PolicyHttpMessageHandler Oluşturucular

Tanım

Aşırı Yüklemeler

PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)

Yeni bir PolicyHttpMessageHandler oluşturur.

PolicyHttpMessageHandler(Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>)

Yeni bir PolicyHttpMessageHandler oluşturur.

PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)

Yeni bir PolicyHttpMessageHandler oluşturur.

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))

Parametreler

Şunlara uygulanır

PolicyHttpMessageHandler(Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>)

Yeni bir PolicyHttpMessageHandler oluşturur.

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)))

Parametreler

policySelector
Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>

Belirli HttpRequestMessagebir için istenen ilkeyi seçebilen bir işlev.

Şunlara uygulanır