-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SubscriptionRuntimeProperties.cs
69 lines (57 loc) · 2.27 KB
/
SubscriptionRuntimeProperties.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
namespace Azure.Messaging.ServiceBus.Administration
{
/// <summary>
/// This provides runtime properties of the subscription.
/// </summary>
public class SubscriptionRuntimeProperties
{
internal SubscriptionRuntimeProperties(string topicName, string subscriptionName)
{
TopicName = topicName;
SubscriptionName = subscriptionName;
}
/// <summary>
/// The name of the topic.
/// </summary>
public string TopicName { get; internal set; }
/// <summary>
/// The name of subscription.
/// </summary>
public string SubscriptionName { get; internal set; }
/// <summary>
/// The total number of messages in the subscription.
/// </summary>
public long TotalMessageCount { get; internal set; }
/// <summary>
/// The number of active messages in the entity.
/// </summary>
public long ActiveMessageCount { get; internal set; }
/// <summary>
/// The number of dead-lettered messages in the entity.
/// </summary>
public long DeadLetterMessageCount { get; internal set; }
/// <summary>
/// The number of messages which are yet to be transferred/forwarded to destination entity.
/// </summary>
public long TransferMessageCount { get; internal set; }
/// <summary>
/// The number of messages transfer-messages which are dead-lettered into transfer-dead-letter subqueue.
/// </summary>
public long TransferDeadLetterMessageCount { get; internal set; }
/// <summary>
/// The <see cref="DateTimeOffset"/> when the entity was last accessed.
/// </summary>
public DateTimeOffset AccessedAt { get; internal set; }
/// <summary>
/// The <see cref="DateTimeOffset"/> when the entity was created.
/// </summary>
public DateTimeOffset CreatedAt { get; internal set; }
/// <summary>
/// The <see cref="DateTime"/> when the entity description was last updated.
/// </summary>
public DateTimeOffset UpdatedAt { get; internal set; }
}
}