ServiceBusModelFactory.SubscriptionRuntimeProperties Method

Definition

public static Azure.Messaging.ServiceBus.Administration.SubscriptionRuntimeProperties SubscriptionRuntimeProperties (string topicName, string subscriptionName, long activeMessageCount = 0, long deadLetterMessageCount = 0, long transferDeadLetterMessageCount = 0, long transferMessageCount = 0, long totalMessageCount = 0, DateTimeOffset createdAt = default, DateTimeOffset updatedAt = default, DateTimeOffset accessedAt = default);
static member SubscriptionRuntimeProperties : string * string * int64 * int64 * int64 * int64 * int64 * DateTimeOffset * DateTimeOffset * DateTimeOffset -> Azure.Messaging.ServiceBus.Administration.SubscriptionRuntimeProperties
Public Shared Function SubscriptionRuntimeProperties (topicName As String, subscriptionName As String, Optional activeMessageCount As Long = 0, Optional deadLetterMessageCount As Long = 0, Optional transferDeadLetterMessageCount As Long = 0, Optional transferMessageCount As Long = 0, Optional totalMessageCount As Long = 0, Optional createdAt As DateTimeOffset = Nothing, Optional updatedAt As DateTimeOffset = Nothing, Optional accessedAt As DateTimeOffset = Nothing) As SubscriptionRuntimeProperties

Parameters

topicName
String

The name to assign as the value of TopicName.

subscriptionName
String

The name to assign as the value of SubscriptionName.

activeMessageCount
Int64

The count to assign as the value of ActiveMessageCount.

deadLetterMessageCount
Int64

The count to assign as the value of DeadLetterMessageCount.

transferDeadLetterMessageCount
Int64

The count to assign as the value of TransferDeadLetterMessageCount.

transferMessageCount
Int64

The count to assign as the value of TransferMessageCount.

totalMessageCount
Int64

The count to assign as the value of TotalMessageCount.

createdAt
DateTimeOffset

The time stamp to assign as the value of CreatedAt.

updatedAt
DateTimeOffset

The time stamp to assign as the value of UpdatedAt.

accessedAt
DateTimeOffset

The time stamp to assign as the value of AccessedAt.

Returns

The populated SubscriptionRuntimeProperties(String, String, Int64, Int64, Int64, Int64, Int64, DateTimeOffset, DateTimeOffset, DateTimeOffset) instance to use for mocking.

Applies to