addServiceBusTopic

Method
📦 Aspire.Hosting.Azure.ServiceBus v17.0.0
interface AzureServiceBusResource {
// ... omitted for brevity
addServiceBusTopic(
name: string,
topicName?: string): AzureServiceBusTopicResource;
}

Signature

methodaddServiceBusTopicbuilder
Adds an Azure Service Bus Topic resource to the application model.
addServiceBusTopic(
name: string,
topicName?: string): AzureServiceBusTopicResource
namestringThe name of the topic resource.
topicNamestringoptionalThe name of the Service Bus Topic. If not provided, this defaults to the same value as `name`.
AzureServiceBusTopicResource

Applies to

This method applies to the following types: