Share via


AzureComponentFactory.CreateClient Method

Definition

Creates a new client instance using the provided configuration to map constructor parameters from. Optionally takes a set of client option and credential to use when constructing a client.

public abstract object CreateClient (Type clientType, Microsoft.Extensions.Configuration.IConfiguration configuration, Azure.Core.TokenCredential credential, object clientOptions);
abstract member CreateClient : Type * Microsoft.Extensions.Configuration.IConfiguration * Azure.Core.TokenCredential * obj -> obj
Public MustOverride Function CreateClient (clientType As Type, configuration As IConfiguration, credential As TokenCredential, clientOptions As Object) As Object

Parameters

clientType
Type
configuration
IConfiguration

The IConfiguration instance to map constructor parameters from.

credential
TokenCredential

The TokenCredential object to use if required by constructor, if null no .

clientOptions
Object

The client

Returns

Applies to