Skip to content
Docs Try Aspire

AzureServiceBusQueueResource

Class net10.0
📦 Aspire.Hosting.Azure.ServiceBus v13.1.2
Represents a Service Bus Queue. Initializes a new instance of the AzureServiceBusQueueResource class.
namespace Aspire.Hosting.Azure;
public class AzureServiceBusQueueResource
: Aspire.Hosting.ApplicationModel.Resource,
Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
Aspire.Hosting.ApplicationModel.IResource,
Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
Aspire.Hosting.ApplicationModel.IResourceWithParent,
Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.AzureServiceBusResource>,
Aspire.Hosting.ApplicationModel.IValueProvider,
Aspire.Hosting.ApplicationModel.IValueWithReferences,
Aspire.Hosting.Azure.IResourceWithAzureFunctionsConfig
{
// ...
}
ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<AzureServiceBusResource>IValueProviderIValueWithReferencesIResourceWithAzureFunctionsConfig
Use AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties.
View all constructors
ConnectionStringExpressionget
ReferenceExpression
Gets the connection string expression for the Azure Service Bus Queue.
DeadLetteringOnMessageExpirationget; set
bool?
A value that indicates whether this queue has dead letter support when a message expires.
DefaultMessageTimeToLiveget; set
TimeSpan?
ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.
DuplicateDetectionHistoryTimeWindowget; set
TimeSpan?
ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
ForwardDeadLetteredMessagesToget; set
string?
Queue/Topic name to forward the Dead Letter message.
ForwardToget; set
string?
Queue/Topic name to forward the messages.
LockDurationget; set
TimeSpan?
ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
MaxDeliveryCountget; set
int?
The maximum delivery count. A message is automatically dead-lettered after this number of deliveries.
Parentget
Gets the parent Azure Service Bus resource.
QueueNameget; set
string
The queue name.
RequiresDuplicateDetectionget; set
bool?
A value indicating if this queue requires duplicate detection.
RequiresSessionget; set
bool?
A value that indicates whether the queue supports the concept of sessions.
View all properties