/// <summary> /// Gets the data of supported operating systems by SRS. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='instanceType'> /// The instance type. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SupportedOperatingSystems> GetAsync(this ISupportedOperatingSystemsOperations operations, string instanceType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(instanceType, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the data of supported operating systems by SRS. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='instanceType'> /// The instance type. /// </param> public static SupportedOperatingSystems Get(this ISupportedOperatingSystemsOperations operations, string instanceType = default(string)) { return(operations.GetAsync(instanceType).GetAwaiter().GetResult()); }
/// <summary> /// Gets the data of supported OSes by SRS. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static SupportedOperatingSystems Get(this ISupportedOperatingSystemsOperations operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }