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 | |
---|---|---|
Create(DelegatingHandler[]) | Creates a new instance of the HttpClient. |
|
Create(HttpMessageHandler, DelegatingHandler[]) | Creates a new instance of the HttpClient. |
|
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
Return to top