다음을 통해 공유


PolicyHttpMessageHandler 생성자

정의

오버로드

PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)

PolicyHttpMessageHandler를 만듭니다.

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

PolicyHttpMessageHandler를 만듭니다.

PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)

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

매개 변수

policy
IAsyncPolicy<HttpResponseMessage>

정책입니다.

적용 대상

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

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

매개 변수

policySelector
Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>

지정된 HttpRequestMessage에 대해 원하는 정책을 선택할 수 있는 함수입니다.

적용 대상