共用方式為


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;
member this.AddClient : Func<'Options, Azure.Core.TokenCredential, IServiceProvider, 'Client (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
Public Function AddClient(Of TClient, TOptions) (factory As Func(Of TOptions, TokenCredential, IServiceProvider, TClient)) As IAzureClientBuilder(Of TClient, TOptions)

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;
member this.AddClient : Func<'Options, Azure.Core.TokenCredential, 'Client (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
Public Function AddClient(Of TClient, TOptions) (factory As Func(Of TOptions, TokenCredential, TClient)) As IAzureClientBuilder(Of TClient, TOptions)

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;
member this.AddClient : Func<'Options, IServiceProvider, 'Client (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
Public Function AddClient(Of TClient, TOptions) (factory As Func(Of TOptions, IServiceProvider, TClient)) As IAzureClientBuilder(Of TClient, TOptions)

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;
member this.AddClient : Func<'Options, 'Client (requires 'Options : null)> -> Azure.Core.Extensions.IAzureClientBuilder<'Client, 'Options (requires 'Options : null)> (requires 'Options : null)
Public Function AddClient(Of TClient, TOptions) (factory As Func(Of TOptions, TClient)) As IAzureClientBuilder(Of TClient, TOptions)

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