| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.Messaging.EventHubs |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// A set of information for an Event Hub. |
| | 10 | | /// </summary> |
| | 11 | | /// |
| | 12 | | public class EventHubProperties |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// The name of the Event Hub, specific to the namespace |
| | 16 | | /// that contains it. |
| | 17 | | /// </summary> |
| | 18 | | /// |
| 2 | 19 | | public string Name { get; } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// The date and time, in UTC, at which the Event Hub was created. |
| | 23 | | /// </summary> |
| | 24 | | /// |
| 2 | 25 | | public DateTimeOffset CreatedOn { get; } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// The set of unique identifiers for each partition in the Event Hub. |
| | 29 | | /// </summary> |
| | 30 | | /// |
| 78 | 31 | | public string[] PartitionIds { get; } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the <see cref="EventHubProperties"/> class. |
| | 35 | | /// </summary> |
| | 36 | | /// |
| | 37 | | /// <param name="name">The name of the Event Hub.</param> |
| | 38 | | /// <param name="createdOn">The date and time at which the Event Hub was created.</param> |
| | 39 | | /// <param name="partitionIds">The set of unique identifiers for each partition.</param> |
| | 40 | | /// |
| 82 | 41 | | protected internal EventHubProperties(string name, |
| 82 | 42 | | DateTimeOffset createdOn, |
| 82 | 43 | | string[] partitionIds) |
| | 44 | | { |
| 82 | 45 | | Name = name; |
| 82 | 46 | | CreatedOn = createdOn; |
| 82 | 47 | | PartitionIds = partitionIds; |
| 82 | 48 | | } |
| | 49 | | } |
| | 50 | | } |