AzureClientFactoryBuilder.IAzureClientFactoryBuilderWithConfiguration<IConfiguration>.RegisterClientFactory<TClient,TOptions> Method

Definition

Registers a client in the dependency injection container using the configuration to create a client instance.

Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> IAzureClientFactoryBuilderWithConfiguration<IConfiguration>.RegisterClientFactory<TClient,TOptions> (Microsoft.Extensions.Configuration.IConfiguration configuration) where TOptions : class;
abstract member Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<Microsoft.Extensions.Configuration.IConfiguration>.RegisterClientFactory : Microsoft.Extensions.Configuration.IConfiguration -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
override this.Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<Microsoft.Extensions.Configuration.IConfiguration>.RegisterClientFactory : Microsoft.Extensions.Configuration.IConfiguration -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
Function RegisterClientFactory(Of TClient, TOptions) (configuration As IConfiguration) As IAzureClientBuilder(Of TClient, TOptions) Implements IAzureClientFactoryBuilderWithConfiguration(Of IConfiguration).RegisterClientFactory

Type Parameters

TClient

The type of the client.

TOptions

The client options type used the client.

Parameters

configuration
IConfiguration

Instance of TConfiguration to use.

Returns

IAzureClientBuilder<TClient,TOptions> that allows customizing the client registration.

Implements

Applies to