| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.Messaging.EventHubs.Core |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// The set of extension methods for the <see cref="EventHubConnectionOptions" /> |
| | 8 | | /// class. |
| | 9 | | /// </summary> |
| | 10 | | /// |
| | 11 | | internal static class EventHubConnectionOptionsExtensions |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// Creates a new copy of the current <see cref="EventHubConnectionOptions" />, cloning its attributes into a |
| | 15 | | /// </summary> |
| | 16 | | /// |
| | 17 | | /// <param name="instance">The instance that this method was invoked on.</param> |
| | 18 | | /// |
| | 19 | | /// <returns>A new copy of <see cref="EventHubConnectionOptions" />.</returns> |
| | 20 | | /// |
| | 21 | | public static EventHubConnectionOptions Clone(this EventHubConnectionOptions instance) => |
| 50 | 22 | | new EventHubConnectionOptions |
| 50 | 23 | | { |
| 50 | 24 | | TransportType = instance.TransportType, |
| 50 | 25 | | Proxy = instance.Proxy |
| 50 | 26 | | }; |
| | 27 | | } |
| | 28 | | } |