BookshelfClientHostExtensions.AddBookshelfClient Method

Definition

Overloads

AddBookshelfClient(IHostApplicationBuilder, String)

Source:
BookshelfClientHostExtensions.cs

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

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

Parameters

sectionName
String

The section of IConfiguration to use.

Returns

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

Applies to

AddBookshelfClient(IHostApplicationBuilder, String, Action<BookshelfClientSettings>)

Source:
BookshelfClientHostExtensions.cs

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

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

Parameters

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