HttpClientFactory Class

 

Represents the factory for creating new instance of HttpClient.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Inheritance Hierarchy

System.Object
  System.Net.Http.HttpClientFactory

Syntax

public static class HttpClientFactory
public ref class HttpClientFactory abstract sealed 
[<AbstractClass>]
[<Sealed>]
type HttpClientFactory = class end
Public NotInheritable Class HttpClientFactory

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Create(DelegatingHandler[])

Creates a new instance of the HttpClient.

System_CAPS_pubmethodSystem_CAPS_static Create(HttpMessageHandler, DelegatingHandler[])

Creates a new instance of the HttpClient.

System_CAPS_pubmethodSystem_CAPS_static CreatePipeline(HttpMessageHandler, IEnumerable<DelegatingHandler>)

Creates a new instance of the HttpClient which should be pipelined.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Net.Http Namespace

Return to top