Definition
Assembly: Microsoft.Extensions.Http.dll Namespace: Microsoft.Extensions.DependencyInjectionSyntax
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_IHttpClientBuilderExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | Microsoft.Extensions.DependencyInjection.IHttpClientBuilder | The IHttpClientBuilder instance to extend. |
mode | CloudNimble.EasyAF.Core.HttpHandlerMode | A 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
THandler- The DelegatingHandler type to pull from the scoped ServiceProvider.