예제 #1
0
 /// <summary>
 /// Gets the status of an asynchronous operation for the Azure HPC Cache
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The name of the region used to look up the operation.
 /// </param>
 /// <param name='operationId'>
 /// The operation id which uniquely identifies the asynchronous operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AscOperation> GetAsync(this IAscOperations operations, string location, string operationId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(location, operationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Gets the status of an asynchronous operation for the Azure HPC Cache
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The name of the region used to look up the operation.
 /// </param>
 /// <param name='operationId'>
 /// The operation id which uniquely identifies the asynchronous operation.
 /// </param>
 public static AscOperation Get(this IAscOperations operations, string location, string operationId)
 {
     return(operations.GetAsync(location, operationId).GetAwaiter().GetResult());
 }