| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.Messaging.ServiceBus.Management |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Represents the runtime properties of the topic. |
| | 10 | | /// </summary> |
| | 11 | | public class TopicRuntimeProperties |
| | 12 | | { |
| 8 | 13 | | internal TopicRuntimeProperties(string name) |
| | 14 | | { |
| 8 | 15 | | Name = name; |
| 8 | 16 | | } |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The name of the topic. |
| | 20 | | /// </summary> |
| 20 | 21 | | public string Name { get; internal set; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The <see cref="DateTime"/> when the entity was last accessed. |
| | 25 | | /// </summary> |
| 20 | 26 | | public DateTimeOffset AccessedAt { get; internal set; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// The <see cref="DateTimeOffset"/> when the entity was created. |
| | 30 | | /// </summary> |
| 20 | 31 | | public DateTimeOffset CreatedAt { get; internal set; } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// The <see cref="DateTimeOffset"/> when the entity description was last updated. |
| | 35 | | /// </summary> |
| 24 | 36 | | public DateTimeOffset UpdatedAt { get; internal set; } |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// The current size of the entity in bytes. |
| | 40 | | /// </summary> |
| 16 | 41 | | public long SizeInBytes { get; internal set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// The number of subscriptions to the topic. |
| | 45 | | /// </summary> |
| 20 | 46 | | public int SubscriptionCount { get; internal set; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// The number of messages that are scheduled to be enqueued. |
| | 50 | | /// </summary> |
| 16 | 51 | | public long ScheduledMessageCount { get; internal set; } |
| | 52 | | } |
| | 53 | | } |