Language

WebPubSubChatServiceClientHostExtensions.AddKeyedWebPubSubChatServiceClient Method

Definition

Overloads

AddKeyedWebPubSubChatServiceClient(IHostApplicationBuilder, String, String)

Source:
WebPubSubChatServiceClientHostExtensions.cs

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

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

AddKeyedWebPubSubChatServiceClient(IHostApplicationBuilder, String, String, Action<WebPubSubChatServiceClientSettings>)

Source:
WebPubSubChatServiceClientHostExtensions.cs

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

public static System.ClientModel.Primitives.IClientBuilder AddKeyedWebPubSubChatServiceClient(this Microsoft.Extensions.Hosting.IHostApplicationBuilder host, string key, string sectionName, Action<Azure.Messaging.WebPubSub.Chat.WebPubSubChatServiceClientSettings> configureSettings);
static member AddKeyedWebPubSubChatServiceClient : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * string * Action<Azure.Messaging.WebPubSub.Chat.WebPubSubChatServiceClientSettings> -> System.ClientModel.Primitives.IClientBuilder
<Extension()>
Public Function AddKeyedWebPubSubChatServiceClient (host As IHostApplicationBuilder, key As String, sectionName As String, configureSettings As Action(Of WebPubSubChatServiceClientSettings)) As IClientBuilder

Parameters

key
String

The unique key to register as.

sectionName
String

The section of IConfiguration to use.

configureSettings
Action<WebPubSubChatServiceClientSettings>

Factory method to modify the WebPubSubChatServiceClientSettings after they are created.

Returns

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

Applies to