-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ServiceBusAdministrationClientOptions.cs
81 lines (73 loc) · 2.92 KB
/
ServiceBusAdministrationClientOptions.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
70
71
72
73
74
75
76
77
78
79
80
81
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.ComponentModel;
using Azure.Core;
namespace Azure.Messaging.ServiceBus.Administration
{
/// <summary>
/// The set of options that can be specified when creating an <see cref="ServiceBusAdministrationClient" />
/// to configure its behavior.
/// </summary>
public class ServiceBusAdministrationClientOptions : ClientOptions
{
/// <summary>
/// Initializes a new instance of the <see cref="ServiceBusAdministrationClientOptions"/> class.
/// </summary>
/// <param name="version">
/// The <see cref="ServiceVersion"/> of the service API used when
/// making requests.
/// </param>
public ServiceBusAdministrationClientOptions(ServiceVersion version = ServiceVersion.V2021_05)
{
Version = version;
}
/// <summary>
/// The versions of Service Bus Administration supported by this client
/// library.
/// </summary>
public enum ServiceVersion
{
#pragma warning disable CA1707 // Identifiers should not contain underscores
/// <summary>
/// The 2017-04 service version.
/// </summary>
V2017_04 = 1,
/// <summary>
/// The 2021-05 service version.
/// </summary>
V2021_05 = 2
#pragma warning restore CA1707 // Identifiers should not contain underscores
}
/// <summary>
/// Gets the <see cref="ServiceVersion"/> of the service API used when
/// making requests.
/// </summary>
public ServiceVersion Version { get; }
/// <summary>
/// Determines whether the specified <see cref="object" /> is equal to this instance.
/// </summary>
///
/// <param name="obj">The <see cref="object" /> to compare with this instance.</param>
///
/// <returns><c>true</c> if the specified <see cref="object" /> is equal to this instance; otherwise, <c>false</c>.</returns>
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => base.Equals(obj);
/// <summary>
/// Returns a hash code for this instance.
/// </summary>
///
/// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => base.GetHashCode();
/// <summary>
/// Converts the instance to string representation.
/// </summary>
///
/// <returns>A <see cref="string" /> that represents this instance.</returns>
///
[EditorBrowsable(EditorBrowsableState.Never)]
public override string ToString() => base.ToString();
}
}