IHttpClientServiceRegisterNamedClient Method

Registers a new named client configuration.

Namespace:  Dundas.BI
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.4.0.1000)
Syntax
void RegisterNamedClient(
	string name,
	Action<HttpClientFactoryOptions> configureClient
)

Parameters

name
Type: SystemString
The logical name of the HttpClient to configure.
configureClient
Type: SystemActionHttpClientFactoryOptions
A delegate that is used to configure the client.
Exceptions
ExceptionCondition
DuplicateItemExceptionA client with the same name has already been registered.
Remarks
Note: once a named client has been registered, its configuration delegate cannot be modified.
See Also