Language

WebPubSubChatServiceClientHostExtensions.AddWebPubSubChatServiceClient Method

Definition

Overloads

AddWebPubSubChatServiceClient(IHostApplicationBuilder, String)

Source:
WebPubSubChatServiceClientHostExtensions.cs

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

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

AddWebPubSubChatServiceClient(IHostApplicationBuilder, String, Action<WebPubSubChatServiceClientSettings>)

Source:
WebPubSubChatServiceClientHostExtensions.cs

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

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

Parameters

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