Skip to main content

Definition

Assembly: Microsoft.Extensions.Http.dll Namespace: Microsoft.Extensions.DependencyInjection

Syntax

Microsoft.Extensions.DependencyInjection.IHttpClientBuilder

Summary

This type is defined in Microsoft.Extensions.Http.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

AddHttpMessageHandler Extension

Extension method from Microsoft.Extensions.DependencyInjection.EasyAF_Http_IHttpClientBuilderExtensions
Given the HttpHandlerMode, adds the specified THandler to the beginning or end of the pipeline.

Syntax

public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpMessageHandler<THandler>(Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, CloudNimble.EasyAF.Core.HttpHandlerMode mode) where THandler : System.Net.Http.DelegatingHandler

Parameters

NameTypeDescription
builderMicrosoft.Extensions.DependencyInjection.IHttpClientBuilderThe IHttpClientBuilder instance to extend.
modeCloudNimble.EasyAF.Core.HttpHandlerModeA HttpHandlerMode specifying whether we are making this handler the first one in the pipeline, or the last.

Returns

Type: Microsoft.Extensions.DependencyInjection.IHttpClientBuilder The IHttpClientBuilder instance for method chaining.

Type Parameters