| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | 3 | |
|
| | 4 | | namespace Microsoft.Azure.Batch |
| | 5 | | { |
| | 6 | | internal interface ITransportObjectProvider<out T> |
| | 7 | | { |
| | 8 | | T GetTransportObject(); |
| | 9 | | } |
| | 10 | |
|
| | 11 | | internal static class TransportObjectProviderExtensions |
| | 12 | | { |
| | 13 | | internal static T GetTransportObject<T>(this ITransportObjectProvider<T> objectProvider) |
| | 14 | | { |
| 14190 | 15 | | return objectProvider.GetTransportObject(); |
| | 16 | | } |
| | 17 | | } |
| | 18 | | } |