AzureServiceBusExtensions.AddServiceBusSubscription 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 Subscription resource to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusSubscriptionResource> AddServiceBusSubscription(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusTopicResource> builder, string name, string? subscriptionName = default);
static member AddServiceBusSubscription : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusTopicResource> * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusSubscriptionResource>
<Extension()>
Public Function AddServiceBusSubscription (builder As IResourceBuilder(Of AzureServiceBusTopicResource), name As String, Optional subscriptionName As String = Nothing) As IResourceBuilder(Of AzureServiceBusSubscriptionResource)
Parameters
The Azure Service Bus Topic resource builder.
- name
- String
The name of the subscription.
- subscriptionName
- String
The name of the Service Bus Subscription. If not provided, this defaults to the same value as name
.
Returns
A reference to the IResourceBuilder<T>.