Skip to content
Docs Try Aspire

AzureServiceBusSubscriptionResource Properties

Class Properties 11 members
Represents a Service Bus Subscription. Initializes a new instance of the AzureServiceBusSubscriptionResource class.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the Azure Service Bus Subscription.
public ReferenceExpression ConnectionStringExpression { get; }
DeadLetteringOnMessageExpiration Section titled DeadLetteringOnMessageExpiration nullable bool?
A value that indicates whether this queue has dead letter support when a message expires.
public bool? DeadLetteringOnMessageExpiration { get; set; }
DefaultMessageTimeToLive Section titled DefaultMessageTimeToLive nullable 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.
public TimeSpan? DefaultMessageTimeToLive { get; set; }
ForwardDeadLetteredMessagesTo Section titled ForwardDeadLetteredMessagesTo nullable string?
Queue/Topic name to forward the Dead Letter message.
public string? ForwardDeadLetteredMessagesTo { get; set; }
ForwardTo Section titled ForwardTo nullable string?
Queue/Topic name to forward the messages.
public string? ForwardTo { get; set; }
LockDuration Section titled LockDuration nullable 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.
public TimeSpan? LockDuration { get; set; }
MaxDeliveryCount Section titled MaxDeliveryCount nullable int?
The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.
public int? MaxDeliveryCount { get; set; }
Gets the parent Azure Service Bus Topic resource.
public AzureServiceBusTopicResource Parent { get; }
RequiresSession Section titled RequiresSession nullable bool?
A value that indicates whether the queue supports the concept of sessions.
public bool? RequiresSession { get; set; }
The rules for this subscription.
public List<AzureServiceBusRule> Rules { get; }
SubscriptionName Section titled SubscriptionName string
The subscription name.
public string SubscriptionName { get; set; }