ContentUnderstandingClientHostExtensions.AddKeyedContentUnderstandingClient Method

Definition

Overloads

AddKeyedContentUnderstandingClient(IHostApplicationBuilder, String, String)

Source:
ContentUnderstandingClientHostExtensions.cs

Adds a keyed singleton ContentUnderstandingClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddKeyedContentUnderstandingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName);
static member AddKeyedContentUnderstandingClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedContentUnderstandingClient (host As IHostApplicationBuilder, key As String, sectionName As String) As IClientBuilder

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to

AddKeyedContentUnderstandingClient(IHostApplicationBuilder, String, String, Action<ContentUnderstandingClientSettings>)

Source:
ContentUnderstandingClientHostExtensions.cs

Adds a keyed singleton ContentUnderstandingClient to the IHostApplicationBuilder's service collection.

public static System.ClientModel.Primitives.IClientBuilder AddKeyedContentUnderstandingClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName, Action<Azure.AI.ContentUnderstanding.ContentUnderstandingClientSettings> configureSettings);
static member AddKeyedContentUnderstandingClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string * Action<Azure.AI.ContentUnderstanding.ContentUnderstandingClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedContentUnderstandingClient (host As IHostApplicationBuilder, key As String, sectionName As String, configureSettings As Action(Of ContentUnderstandingClientSettings)) As IClientBuilder

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<ContentUnderstandingClientSettings>

Factory method to modify the ContentUnderstandingClientSettings after they are created.

Returns

An IClientBuilder that can be used to further configure the client.

Applies to