Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​DependencyInjection.​SocketsHttpHandlerBuilderExtensions

Assembly: Microsoft.Extensions.Http

Inheritance: object → SocketsHttpHandlerBuilderExtensions

Extension methods to configure <see cref="T:System.Net.Http.SocketsHttpHandler" /> for a named <see cref="T:System.Net.Http.HttpClient" /> instances returned by <see cref="T:System.Net.Http.IHttpClientFactory" /> .

Methods

Configure​(ISocketsHttpHandlerBuilder builder, System.​Action<​System.​Net.​Http.​SocketsHttpHandler, System.​IServiceProvider> configure)
Adds a delegate that will be used to configure the primary <see cref="T:System.Net.Http.SocketsHttpHandler" /> for a named <see cref="T:System.Net.Http.HttpClient" /> .
Returns An <see cref="T:Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder" /> that can be used to configure the handler.
builder The <see cref="T:Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder" /> .
configure A delegate that is used to modify a <see cref="T:System.Net.Http.SocketsHttpHandler" /> .
Configure​(ISocketsHttpHandlerBuilder builder, Configuration.​IConfiguration configuration)
Uses <see cref="T:Microsoft.Extensions.Configuration.IConfiguration" /> to configure the primary <see cref="T:System.Net.Http.SocketsHttpHandler" /> for a named <see cref="T:System.Net.Http.HttpClient" /> .
Returns An <see cref="T:Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder" /> that can be used to configure the handler.
builder The <see cref="T:Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder" /> .
configuration Configuration containing properties of <see cref="T:System.Net.Http.SocketsHttpHandler" /> .
Remarks <para> Only simple (of type `bool`, `int`, <see cref="T:System.Enum" /> or <see cref="T:System.TimeSpan" />) properties of <see cref="T:System.Net.Http.SocketsHttpHandler" /> will be parsed. </para> <para> All unmatched properties in <see cref="T:Microsoft.Extensions.Configuration.IConfiguration" /> will be ignored. </para>
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object