Comparteix a través de


HttpClientBuilderExtensions.ConfigureAdditionalHttpMessageHandlers Método

Definición

Agrega un delegado que se usará para configurar controladores de mensajes adicionales mediante HttpMessageHandlerBuilder para un denominado HttpClient.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ ConfigureAdditionalHttpMessageHandlers(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<System::Collections::Generic::IList<System::Net::Http::DelegatingHandler ^> ^, IServiceProvider ^> ^ configureAdditionalHandlers);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureAdditionalHttpMessageHandlers (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<System.Collections.Generic.IList<System.Net.Http.DelegatingHandler>,IServiceProvider> configureAdditionalHandlers);
static member ConfigureAdditionalHttpMessageHandlers : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<System.Collections.Generic.IList<System.Net.Http.DelegatingHandler>, IServiceProvider> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function ConfigureAdditionalHttpMessageHandlers (builder As IHttpClientBuilder, configureAdditionalHandlers As Action(Of IList(Of DelegatingHandler), IServiceProvider)) As IHttpClientBuilder

Parámetros

builder
IHttpClientBuilder

El parámetro de cadena de consulta IHttpClientBuilder.

configureAdditionalHandlers
Action<IList<DelegatingHandler>,IServiceProvider>

Delegado que se usa para configurar una colección de DelegatingHandler objetos.

Devoluciones

Un objeto IHttpClientBuilder que se puede usar para configurar el cliente.

Se aplica a