AzureServiceBusExtensions.AddServiceBusTopic Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an Azure Service Bus Topic resource to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusTopicResource> AddServiceBusTopic(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string name, string? topicName = default);
static member AddServiceBusTopic : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusTopicResource>
<Extension()>
Public Function AddServiceBusTopic (builder As IResourceBuilder(Of AzureServiceBusResource), name As String, Optional topicName As String = Nothing) As IResourceBuilder(Of AzureServiceBusTopicResource)
Parameters
- builder
- IResourceBuilder<AzureServiceBusResource>
The Azure Service Bus resource builder.
- name
- String
The name of the topic.
- topicName
- String
The name of the Service Bus Topic. If not provided, this defaults to the same value as name
.
Returns
A reference to the IResourceBuilder<T>.