Share via


AzureServiceBusExtensions.AddTopic Method

Definition

Overloads

AddTopic(IResourceBuilder<AzureServiceBusResource>, String)

Adds an Azure Service Bus Topic resource to the application model. This resource requires an AzureServiceBusResource to be added to the application model.

AddTopic(IResourceBuilder<AzureServiceBusResource>, String, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct,ServiceBusTopic>)

Adds an Azure Service Bus Topic resource to the application model. This resource requires an AzureServiceBusResource to be added to the application model.

AddTopic(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.

AddTopic(IResourceBuilder<AzureServiceBusResource>, 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> AddTopic (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string name);
static member AddTopic : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddTopic (builder As IResourceBuilder(Of AzureServiceBusResource), name As String) As IResourceBuilder(Of AzureServiceBusResource)

Parameters

builder
IResourceBuilder<AzureServiceBusResource>

The Azure Service Bus resource builder.

name
String

The name of the topic.

Returns

Applies to

AddTopic(IResourceBuilder<AzureServiceBusResource>, String, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct,ServiceBusTopic>)

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> AddTopic (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.ServiceBus.ServiceBusTopic>? configureTopic);
static member AddTopic : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.ServiceBus.ServiceBusTopic> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddTopic (builder As IResourceBuilder(Of AzureServiceBusResource), name As String, configureTopic As Action(Of IResourceBuilder(Of AzureServiceBusResource), ResourceModuleConstruct, ServiceBusTopic)) As IResourceBuilder(Of AzureServiceBusResource)

Parameters

builder
IResourceBuilder<AzureServiceBusResource>

The Azure Service Bus resource builder.

name
String

The name of the topic.

configureTopic
Action<IResourceBuilder<AzureServiceBusResource>,ResourceModuleConstruct,ServiceBusTopic>

Callback to configure the underlying ServiceBusTopic resource.

Returns

Applies to

AddTopic(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> AddTopic (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string name, string[] subscriptions);
static member AddTopic : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string * string[] -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddTopic (builder As IResourceBuilder(Of AzureServiceBusResource), name As String, subscriptions As String()) As IResourceBuilder(Of AzureServiceBusResource)

Parameters

builder
IResourceBuilder<AzureServiceBusResource>

The Azure Service Bus resource builder.

name
String

The name of the topic.

subscriptions
String[]

The name of the subscriptions.

Returns

Applies to