AzureClientFactoryBuilder.IAzureClientFactoryBuilderWithConfiguration<IConfiguration>.RegisterClientFactory<TClient,TOptions> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET