/// <summary> /// Get the status of the pending Microsoft.Subscription API operations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='operationId'> /// The operation ID, which can be found from the Location field in the /// generate recommendation response header. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SubscriptionCreationResult> GetAsync(this ISubscriptionOperationOperations operations, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the status of the pending Microsoft.Subscription API operations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='operationId'> /// The operation ID, which can be found from the Location field in the /// generate recommendation response header. /// </param> public static SubscriptionCreationResult Get(this ISubscriptionOperationOperations operations, string operationId) { return(operations.GetAsync(operationId).GetAwaiter().GetResult()); }