Table of Contents

HttpManager Constructor

Definition

Namespace
Cuemon.Net.Http
Assemblies
Cuemon.Net.dll
Source
src/Cuemon.Net/Http/HttpManager.cs

HttpManager(Action<HttpManagerOptions>)

Initializes a new instance of the HttpManager class.

public HttpManager(Action<HttpManagerOptions> setup = null)

Parameters

setup Action<HttpManagerOptions>

The HttpManagerOptions which may be configured.

Exceptions

ArgumentNullException

The HandlerFactory of the setup delegate cannot be null.

HttpManager(Func<HttpClient>)

Initializes a new instance of the HttpManager class.

public HttpManager(Func<HttpClient> clientFactory)

Parameters

clientFactory Func<HttpClient>

The function delegate that creates and configures an HttpClient instance.