IHttpClientServiceRegisterNamedClient Method |
Registers a new named client configuration.
Namespace: Dundas.BIAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.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 String
- The logical name of the HttpClient to configure.
- configureClient ActionHttpClientFactoryOptions
- 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