| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System.ComponentModel; |
| | | 5 | | using System.Net; |
| | | 6 | | |
| | | 7 | | namespace Azure.Messaging.EventHubs |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// The set of options that can be specified when creating an <see cref="EventHubConnection" /> |
| | | 11 | | /// to configure its behavior. |
| | | 12 | | /// </summary> |
| | | 13 | | /// |
| | | 14 | | public class EventHubConnectionOptions |
| | | 15 | | { |
| | | 16 | | /// <summary> |
| | | 17 | | /// The type of protocol and transport that will be used for communicating with the Event Hubs |
| | | 18 | | /// service. |
| | | 19 | | /// </summary> |
| | | 20 | | /// |
| | 2336 | 21 | | public EventHubsTransportType TransportType { get; set; } = EventHubsTransportType.AmqpTcp; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// The proxy to use for communication over web sockets. |
| | | 25 | | /// </summary> |
| | | 26 | | /// |
| | | 27 | | /// <remarks> |
| | | 28 | | /// A proxy cannot be used for communication over TCP; if web sockets are not in |
| | | 29 | | /// use, specifying a proxy is an invalid option. |
| | | 30 | | /// </remarks> |
| | | 31 | | /// |
| | 1342 | 32 | | public IWebProxy Proxy { get; set; } = null; |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// Determines whether the specified <see cref="System.Object" /> is equal to this instance. |
| | | 36 | | /// </summary> |
| | | 37 | | /// |
| | | 38 | | /// <param name="obj">The <see cref="System.Object" /> to compare with this instance.</param> |
| | | 39 | | /// |
| | | 40 | | /// <returns><c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c> |
| | | 41 | | /// |
| | | 42 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 0 | 43 | | public override bool Equals(object obj) => base.Equals(obj); |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// Returns a hash code for this instance. |
| | | 47 | | /// </summary> |
| | | 48 | | /// |
| | | 49 | | /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a ha |
| | | 50 | | /// |
| | | 51 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 0 | 52 | | public override int GetHashCode() => base.GetHashCode(); |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Converts the instance to string representation. |
| | | 56 | | /// </summary> |
| | | 57 | | /// |
| | | 58 | | /// <returns>A <see cref="System.String" /> that represents this instance.</returns> |
| | | 59 | | /// |
| | | 60 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 8 | 61 | | public override string ToString() => base.ToString(); |
| | | 62 | | } |
| | | 63 | | } |