PolicyHttpMessageHandler Constructores

Definición

Sobrecargas

PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)

Crea un nuevo PolicyHttpMessageHandler.

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

Crea un nuevo PolicyHttpMessageHandler.

PolicyHttpMessageHandler(IAsyncPolicy<HttpResponseMessage>)

Crea un nuevo 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))

Parámetros

policy
IAsyncPolicy<HttpResponseMessage>

Directiva.

Se aplica a

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

Crea un nuevo 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)))

Parámetros

policySelector
Func<HttpRequestMessage,IAsyncPolicy<HttpResponseMessage>>

Una función que puede seleccionar la directiva deseada para una instancia de HttpRequestMessage determinada.

Se aplica a