Share via


ServiceBusModelFactory.SubscriptionProperties Method

Definition

Creates a new SubscriptionProperties instance for mocking.

public static Azure.Messaging.ServiceBus.Administration.SubscriptionProperties SubscriptionProperties (string topicName, string subscriptionName, TimeSpan lockDuration = default, bool requiresSession = false, TimeSpan defaultMessageTimeToLive = default, TimeSpan autoDeleteOnIdle = default, bool deadLetteringOnMessageExpiration = false, int maxDeliveryCount = 0, bool enableBatchedOperations = false, Azure.Messaging.ServiceBus.Administration.EntityStatus status = default, string forwardTo = default, string forwardDeadLetteredMessagesTo = default, string userMetadata = default);
static member SubscriptionProperties : string * string * TimeSpan * bool * TimeSpan * TimeSpan * bool * int * bool * Azure.Messaging.ServiceBus.Administration.EntityStatus * string * string * string -> Azure.Messaging.ServiceBus.Administration.SubscriptionProperties
Public Shared Function SubscriptionProperties (topicName As String, subscriptionName As String, Optional lockDuration As TimeSpan = Nothing, Optional requiresSession As Boolean = false, Optional defaultMessageTimeToLive As TimeSpan = Nothing, Optional autoDeleteOnIdle As TimeSpan = Nothing, Optional deadLetteringOnMessageExpiration As Boolean = false, Optional maxDeliveryCount As Integer = 0, Optional enableBatchedOperations As Boolean = false, Optional status As EntityStatus = Nothing, Optional forwardTo As String = Nothing, Optional forwardDeadLetteredMessagesTo As String = Nothing, Optional userMetadata As String = Nothing) As SubscriptionProperties

Parameters

topicName
String

Name of the topic to assign as the value of TopicName.

subscriptionName
String

Name of the subscription to assign as the value of SubscriptionName.

lockDuration
TimeSpan

Duration to assign as the value of LockDuration.

requiresSession
Boolean

The boolean flag to assign as the value of RequiresSession.

defaultMessageTimeToLive
TimeSpan

The time interval to assign as the value of DefaultMessageTimeToLive.

autoDeleteOnIdle
TimeSpan

The time interval to assign as the value of AutoDeleteOnIdle.

deadLetteringOnMessageExpiration
Boolean

The boolean flag to assign as the value of DeadLetteringOnMessageExpiration.

maxDeliveryCount
Int32

The count to assign as the value of MaxDeliveryCount.

enableBatchedOperations
Boolean

The boolean flag to assign as the value of EnableBatchedOperations.

status
EntityStatus

The status to assign as the value of Status.

forwardTo
String

The "forward to" entity to assign as the value of ForwardTo.

forwardDeadLetteredMessagesTo
String

The "forward to" entity to assign as the value of ForwardDeadLetteredMessagesTo.

userMetadata
String

The metadata to assign as the value of UserMetadata.

Returns

The populated SubscriptionProperties instance to use for mocking.

Applies to