/// <summary> /// Lists all of the available runtime versions supported by /// Microsoft.AppPlatform provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AvailableRuntimeVersions> ListRuntimeVersionsAsync(this IRuntimeVersionsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListRuntimeVersionsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all of the available runtime versions supported by /// Microsoft.AppPlatform provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static AvailableRuntimeVersions ListRuntimeVersions(this IRuntimeVersionsOperations operations) { return(operations.ListRuntimeVersionsAsync().GetAwaiter().GetResult()); }