AzureServiceBusExtensions.AddSubscription 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.
Overloads
AddSubscription(IResourceBuilder<AzureServiceBusResource>, String, String) |
Adds an Azure Service Bus Topic resource to the application model. This resource requires an AzureServiceBusResource to be added to the application model. |
AddSubscription(IResourceBuilder<AzureServiceBusResource>, String, String, Action<IResourceBuilder<AzureServiceBusResource>,ResourceModuleConstruct, ServiceBusSubscription>) |
Adds an Azure Service Bus Topic resource to the application model. This resource requires an AzureServiceBusResource to be added to the application model. |
AddSubscription(IResourceBuilder<AzureServiceBusResource>, String, String)
- Source:
- AzureServiceBusExtensions.cs
- Source:
- AzureServiceBusExtensions.cs
Adds an Azure Service Bus Topic resource to the application model. This resource requires an AzureServiceBusResource to be added to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> AddSubscription (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string topicName, string subscriptionName);
static member AddSubscription : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddSubscription (builder As IResourceBuilder(Of AzureServiceBusResource), topicName As String, subscriptionName As String) As IResourceBuilder(Of AzureServiceBusResource)
Parameters
- builder
- IResourceBuilder<AzureServiceBusResource>
The Azure Service Bus resource builder.
- topicName
- String
The name of the topic.
- subscriptionName
- String
The name of the subscription.
Returns
Applies to
AddSubscription(IResourceBuilder<AzureServiceBusResource>, String, String, Action<IResourceBuilder<AzureServiceBusResource>,ResourceModuleConstruct, ServiceBusSubscription>)
- Source:
- AzureServiceBusExtensions.cs
Adds an Azure Service Bus Topic resource to the application model. This resource requires an AzureServiceBusResource to be added to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> AddSubscription (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string topicName, string subscriptionName, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.ServiceBus.ServiceBusSubscription>? configureSubscription);
static member AddSubscription : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.ServiceBus.ServiceBusSubscription> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddSubscription (builder As IResourceBuilder(Of AzureServiceBusResource), topicName As String, subscriptionName As String, configureSubscription As Action(Of IResourceBuilder(Of AzureServiceBusResource), ResourceModuleConstruct, ServiceBusSubscription)) As IResourceBuilder(Of AzureServiceBusResource)
Parameters
- builder
- IResourceBuilder<AzureServiceBusResource>
The Azure Service Bus resource builder.
- topicName
- String
The name of the topic.
- subscriptionName
- String
The name of the subscription.
- configureSubscription
- Action<IResourceBuilder<AzureServiceBusResource>,ResourceModuleConstruct,ServiceBusSubscription>
Callback to configure the underlying ServiceBusSubscription resource.