BookshelfClientHostExtensions.AddKeyedBookshelfClient Method

Definition

Overloads

AddKeyedBookshelfClient(IHostApplicationBuilder, String, String)

Source:
BookshelfClientHostExtensions.cs

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

public static System.ClientModel.Primitives.IClientBuilder AddKeyedBookshelfClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName);
static member AddKeyedBookshelfClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedBookshelfClient (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

AddKeyedBookshelfClient(IHostApplicationBuilder, String, String, Action<BookshelfClientSettings>)

Source:
BookshelfClientHostExtensions.cs

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

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

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<BookshelfClientSettings>

Factory method to modify the BookshelfClientSettings after they are created.

Returns

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

Applies to