Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureWebPubSub

Method
📦 Aspire.Hosting.Azure.WebPubSub v17.0.0
func (DistributedApplicationBuilder) AddAzureWebPubSub(name string) AzureWebPubSubResource

Signature

methodAddAzureWebPubSubbuilder
Adds an Azure Web PubSub resource to the application model. Change sku: WithParameter("sku", "Standard_S1") Change capacity: WithParameter("capacity", 2)
AddAzureWebPubSub(name string) AzureWebPubSubResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
AzureWebPubSubResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder