AzureWebPubSubResource.addHub

Method
📦 Aspire.Hosting.Azure.WebPubSub v17.0.0
interface AzureWebPubSubResource {
// ... omitted for brevity
addHub(
name: string,
hubName?: string): AzureWebPubSubHubResource;
}

Signature

methodaddHubbuilder
Adds an Azure Web Pub Sub hub resource to the application model.
addHub(
name: string,
hubName?: string): AzureWebPubSubHubResource
namestringThe name of the Azure WebPubSub Hub resource.
hubNamestringoptionalThe name of the Azure WebPubSub Hub. If not provided, this defaults to the same value as `name`.
AzureWebPubSubHubResource

Defined on

This method is defined on the following type: