共用方式為


AzureServiceBusExtensions.AddQueue Method

Definition

Overloads

AddQueue(IResourceBuilder<AzureServiceBusResource>, String)

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

AddQueue(IResourceBuilder<AzureServiceBusResource>, String, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct,ServiceBusQueue>)

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

AddQueue(IResourceBuilder<AzureServiceBusResource>, String)

Source:
AzureServiceBusExtensions.cs
Source:
AzureServiceBusExtensions.cs

Adds an Azure Service Bus Queue 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> AddQueue (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> builder, string name);
static member AddQueue : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddQueue (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 queue.

Returns

Applies to

AddQueue(IResourceBuilder<AzureServiceBusResource>, String, Action<IResourceBuilder<AzureServiceBusResource>, ResourceModuleConstruct,ServiceBusQueue>)

Source:
AzureServiceBusExtensions.cs

Adds an Azure Service Bus Queue 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> AddQueue (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.ServiceBusQueue>? configureQueue);
static member AddQueue : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource> * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.ServiceBus.ServiceBusQueue> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureServiceBusResource>
<Extension()>
Public Function AddQueue (builder As IResourceBuilder(Of AzureServiceBusResource), name As String, configureQueue As Action(Of IResourceBuilder(Of AzureServiceBusResource), ResourceModuleConstruct, ServiceBusQueue)) As IResourceBuilder(Of AzureServiceBusResource)

Parameters

builder
IResourceBuilder<AzureServiceBusResource>

The Azure Service Bus resource builder.

name
String

The name of the queue.

configureQueue
Action<IResourceBuilder<AzureServiceBusResource>,ResourceModuleConstruct,ServiceBusQueue>

Callback to configure the underlying ServiceBusQueue resource.

Returns

Applies to