Lezen in het Engels

Delen via


AzureClientFactoryBuilder.AddClient Method

Definition

Overloads

AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,IServiceProvider,TClient>)

Adds a client factory for TClient using TOptions as options type and a TokenCredential for authentication. Allows resolving services from IServiceProvider during the client construction.

AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,TClient>)

Adds a client factory for TClient using TOptions as options type and a TokenCredential for authentication.

AddClient<TClient,TOptions>(Func<TOptions,IServiceProvider,TClient>)

Adds a client factory for TClient using TOptions as options type. Allows resolving services from IServiceProvider during the client construction.

AddClient<TClient,TOptions>(Func<TOptions,TClient>)

Adds a client factory for TClient using TOptions as options type.

AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,IServiceProvider,TClient>)

Source:
AzureClientFactoryBuilder.cs

Adds a client factory for TClient using TOptions as options type and a TokenCredential for authentication. Allows resolving services from IServiceProvider during the client construction.

public Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> AddClient<TClient,TOptions>(Func<TOptions,Azure.Core.TokenCredential,IServiceProvider,TClient> factory) where TOptions : class;

Type Parameters

TClient

The type of the client.

TOptions

The type of the client options.

Parameters

factory
Func<TOptions,TokenCredential,IServiceProvider,TClient>

Returns

The IAzureClientBuilder<TClient,TOptions> to allow client configuration.

Applies to

AddClient<TClient,TOptions>(Func<TOptions,TokenCredential,TClient>)

Source:
AzureClientFactoryBuilder.cs

Adds a client factory for TClient using TOptions as options type and a TokenCredential for authentication.

public Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> AddClient<TClient,TOptions>(Func<TOptions,Azure.Core.TokenCredential,TClient> factory) where TOptions : class;

Type Parameters

TClient

The type of the client.

TOptions

The type of the client options.

Parameters

factory
Func<TOptions,TokenCredential,TClient>

Returns

The IAzureClientBuilder<TClient,TOptions> to allow client configuration.

Applies to

AddClient<TClient,TOptions>(Func<TOptions,IServiceProvider,TClient>)

Source:
AzureClientFactoryBuilder.cs

Adds a client factory for TClient using TOptions as options type. Allows resolving services from IServiceProvider during the client construction.

public Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> AddClient<TClient,TOptions>(Func<TOptions,IServiceProvider,TClient> factory) where TOptions : class;

Type Parameters

TClient

The type of the client.

TOptions

The type of the client options.

Parameters

factory
Func<TOptions,IServiceProvider,TClient>

Returns

The IAzureClientBuilder<TClient,TOptions> to allow client configuration.

Applies to

AddClient<TClient,TOptions>(Func<TOptions,TClient>)

Source:
AzureClientFactoryBuilder.cs

Adds a client factory for TClient using TOptions as options type.

public Azure.Core.Extensions.IAzureClientBuilder<TClient,TOptions> AddClient<TClient,TOptions>(Func<TOptions,TClient> factory) where TOptions : class;

Type Parameters

TClient

The type of the client.

TOptions

The type of the client options.

Parameters

factory
Func<TOptions,TClient>

Returns

The IAzureClientBuilder<TClient,TOptions> to allow client configuration.

Applies to