共用方式為


AzureWebPubSubExtensions.AddHub Method

Definition

Add hub settings

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> AddHub (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> builder, string hubName);
static member AddHub : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource>
<Extension()>
Public Function AddHub (builder As IResourceBuilder(Of AzureWebPubSubResource), hubName As String) As IResourceBuilder(Of AzureWebPubSubHubResource)

Parameters

builder
IResourceBuilder<AzureWebPubSubResource>

The builder for the distributed application.

hubName
String

The hub name. Hub name is case-insensitive.

Returns

Applies to