| | 1 | | // Copyright (c) Microsoft. All rights reserved. |
| | 2 | | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| | 3 | |
|
| | 4 | | namespace Microsoft.Azure.ServiceBus.Management |
| | 5 | | { |
| | 6 | | using System; |
| | 7 | |
|
| | 8 | | /// <summary> |
| | 9 | | /// This provides runtime information of the subscription. |
| | 10 | | /// </summary> |
| | 11 | | public class SubscriptionRuntimeInfo |
| | 12 | | { |
| 0 | 13 | | internal SubscriptionRuntimeInfo(string topicPath, string subscriptionName) |
| | 14 | | { |
| 0 | 15 | | this.TopicPath = topicPath; |
| 0 | 16 | | this.SubscriptionName = subscriptionName; |
| 0 | 17 | | } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// The path of the topic. |
| | 21 | | /// </summary> |
| 0 | 22 | | public string TopicPath { get; internal set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// The name of subscription. |
| | 26 | | /// </summary> |
| 0 | 27 | | public string SubscriptionName { get; internal set; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// The total number of messages in the subscription. |
| | 31 | | /// </summary> |
| 0 | 32 | | public long MessageCount { get; internal set; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Message count details of the sub-queues of the entity. |
| | 36 | | /// </summary> |
| 0 | 37 | | public MessageCountDetails MessageCountDetails { get; internal set; } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// The <see cref="DateTime"/> when the entity was last accessed. |
| | 41 | | /// </summary> |
| 0 | 42 | | public DateTime AccessedAt { get; internal set; } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// The <see cref="DateTime"/> when the entity was created. |
| | 46 | | /// </summary> |
| 0 | 47 | | public DateTime CreatedAt { get; internal set; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// The <see cref="DateTime"/> when the entity description was last updated. |
| | 51 | | /// </summary> |
| 0 | 52 | | public DateTime UpdatedAt { get; internal set; } |
| | 53 | | } |
| | 54 | | } |