Share via


AzureServiceBusExtensions.AddAzureServiceBus Method

Definition

Overloads

AddAzureServiceBus(IDistributedApplicationBuilder, String)

Adds an Azure Service Bus Namespace resource to the application model. This resource can be used to create queue, topic, and subscription resources.

AddAzureServiceBus(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct,ServiceBusNamespace>)

Adds an Azure Service Bus Namespace resource to the application model. This resource can be used to create queue, topic, and subscription resources.

AddAzureServiceBus(IDistributedApplicationBuilder, String)

Source:
AzureServiceBusExtensions.cs

Adds an Azure Service Bus Namespace resource to the application model. This resource can be used to create queue, topic, and subscription resources.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> AddAzureServiceBus (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureServiceBus : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddAzureServiceBus (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureServiceBusResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

Returns

Applies to

AddAzureServiceBus(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct,ServiceBusNamespace>)

Source:
AzureServiceBusExtensions.cs

Adds an Azure Service Bus Namespace resource to the application model. This resource can be used to create queue, topic, and subscription resources.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> AddAzureServiceBus (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.ServiceBus.ServiceBusNamespace>? configureResource);
static member AddAzureServiceBus : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.ServiceBus.ServiceBusNamespace> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddAzureServiceBus (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureServiceBusResource), ResourceModuleConstruct, ServiceBusNamespace)) As IResourceBuilder(Of AzureServiceBusResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

configureResource
Action<IResourceBuilder<AzureServiceBusResource>,ResourceModuleConstruct,ServiceBusNamespace>

Callback to configure the underlying ServiceBusNamespace resource.

Returns

Applies to