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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.