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)
Syntaxvoid RegisterNamedClient(
string name,
Action<HttpClientFactoryOptions> configureClient
)
Sub RegisterNamedClient (
name As String,
configureClient As Action(Of HttpClientFactoryOptions)
)
void RegisterNamedClient(
String^ name,
Action<HttpClientFactoryOptions^>^ configureClient
)
abstract RegisterNamedClient :
name : string *
configureClient : Action<HttpClientFactoryOptions> -> unit
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
Remarks
Note: once a named client has been registered, its configuration delegate cannot be modified.
See Also