1 implementation of IHttpMessageHandlerFactory
Microsoft.Extensions.Http (1)
DefaultHttpClientFactory.cs (1)
19
internal class DefaultHttpClientFactory : IHttpClientFactory,
IHttpMessageHandlerFactory
10 references to IHttpMessageHandlerFactory
Microsoft.Extensions.Http (10)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (1)
42
services.TryAddSingleton<
IHttpMessageHandlerFactory
>(serviceProvider => serviceProvider.GetRequiredService<DefaultHttpClientFactory>());
DependencyInjection\HttpClientKeyedLifetime.cs (1)
75
HttpMessageHandler handler = serviceProvider.GetRequiredService<
IHttpMessageHandlerFactory
>().CreateHandler(name);
HttpMessageHandlerBuilder.cs (1)
69
/// handlers. The resulting pipeline can also be accessed by using <see cref="
IHttpMessageHandlerFactory
"/> instead of <see cref="IHttpClientFactory"/>.
HttpMessageHandlerFactoryExtensions.cs (3)
9
/// Extensions methods for <see cref="
IHttpMessageHandlerFactory
"/>.
16
/// <param name="factory">The <see cref="
IHttpMessageHandlerFactory
"/>.</param>
18
public static HttpMessageHandler CreateHandler(this
IHttpMessageHandlerFactory
factory)
IHttpMessageHandlerFactory.cs (4)
13
/// A default <see cref="
IHttpMessageHandlerFactory
"/> can be registered in an <see cref="IServiceCollection"/>
15
/// The default <see cref="
IHttpMessageHandlerFactory
"/> will be registered in the service collection as a singleton.
27
/// The default <see cref="
IHttpMessageHandlerFactory
"/> implementation may cache the underlying
31
/// The default <see cref="
IHttpMessageHandlerFactory
"/> implementation also manages the lifetime of the