/// <summary> /// Gets the status of operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region the operation is in. /// </param> /// <param name='operationId'> /// The operation's unique identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <OperationStatus> OperationStatusMethodAsync(this IGetOperations operations, string location, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.OperationStatusMethodWithHttpMessagesAsync(location, operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public GetController(IGetOperations getOper) { _operations = getOper; }
/// <summary> /// Gets the status of operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region the operation is in. /// </param> /// <param name='operationId'> /// The operation's unique identifier. /// </param> public static OperationStatus OperationStatusMethod(this IGetOperations operations, string location, string operationId) { return(operations.OperationStatusMethodAsync(location, operationId).GetAwaiter().GetResult()); }