Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
 public GetController(IGetOperations getOper)
 {
     _operations = getOper;
 }
Exemple #3
0
 /// <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());
 }