Watch Aspire live streamsDocsTry Aspire

AzureServiceBusSubscriptionResource Properties

ClassProperties12 members
Represents a Service Bus Subscription. Initializes a new instance of the AzureServiceBusSubscriptionResource class.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string expression for the Azure Service Bus Subscription.
public ReferenceExpression ConnectionStringExpression { get; }
DeadLetteringOnMessageExpirationSection titled DeadLetteringOnMessageExpirationnullablebool?
A value that indicates whether this queue has dead letter support when a message expires.
public bool? DeadLetteringOnMessageExpiration { get; set; }
DefaultMessageTimeToLiveSection titled DefaultMessageTimeToLivenullableTimeSpan?
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; }
ForwardDeadLetteredMessagesToSection titled ForwardDeadLetteredMessagesTonullablestring?
Queue/Topic name to forward the Dead Letter message.
public string? ForwardDeadLetteredMessagesTo { get; set; }
ForwardToSection titled ForwardTonullablestring?
Queue/Topic name to forward the messages.
public string? ForwardTo { get; set; }
LockDurationSection titled LockDurationnullableTimeSpan?
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; }
MaxDeliveryCountSection titled MaxDeliveryCountnullableint?
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; }
RequiresSessionSection titled RequiresSessionnullablebool?
A value that indicates whether the queue supports the concept of sessions.
public bool? RequiresSession { get; set; }
ResourceTypeDisplayNameSection titled ResourceTypeDisplayNameoverridestring
Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.
The rules for this subscription.
public List<AzureServiceBusRule> Rules { get; }
SubscriptionNameSection titled SubscriptionNamestring
The subscription name.
public string SubscriptionName { get; set; }