AzureWebPubSubResource.AddHub

Method
📦 Aspire.Hosting.Azure.WebPubSub v17.0.0
type AzureWebPubSubResource interface {
// ... omitted for brevity
AddHub(
name string,
options ...*AddHubOptions,
) AzureWebPubSubHubResource
}

Signature

methodAddHubbuilder
Adds an Azure Web Pub Sub hub resource to the application model.
AddHub(
name string,
options ...*AddHubOptions,
) AzureWebPubSubHubResource
namestringThe name of the Azure WebPubSub Hub resource.
options...*AddHubOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddHubOptions argument.

HubName*stringThe name of the Azure WebPubSub Hub. If not provided, this defaults to the same value as name.
AzureWebPubSubHubResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: