Freigeben über


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

Definition

Registriert einen Client im Dependency Injection-Container mithilfe der Konfiguration, um einen Client instance zu erstellen.

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

Typparameter

TClient

Der Typ des Clients.

TOptions

Der Clientoptionentyp verwendet den Client.

Parameter

configuration
IConfiguration

Zu verwendende Instanz von TConfiguration .

Gibt zurück

IAzureClientBuilder<TClient,TOptions> , die das Anpassen der Clientregistrierung ermöglicht.

Implementiert

Gilt für: