Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AzureClientFactoryBuilder.AddClient Method

Definition

Namespace:
Microsoft.Extensions.Azure
Assembly:
Microsoft.Extensions.Azure.dll
Package:
Microsoft.Extensions.Azure v1.14.0

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.

Overloads

Name Description
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


Feedback

Was this page helpful?