/// <summary> /// Fetches the result of any operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='jobName'> /// Job name whose operation result has to be fetched. /// </param> /// <param name='operationId'> /// OperationID which represents the operation whose result has to be fetched. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task GetAsync(this IJobOperationResultsOperations operations, string vaultName, string resourceGroupName, string jobName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.GetWithHttpMessagesAsync(vaultName, resourceGroupName, jobName, operationId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Fetches the result of any operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='jobName'> /// Job name whose operation result has to be fetched. /// </param> /// <param name='operationId'> /// OperationID which represents the operation whose result has to be fetched. /// </param> public static void Get(this IJobOperationResultsOperations operations, string vaultName, string resourceGroupName, string jobName, string operationId) { operations.GetAsync(vaultName, resourceGroupName, jobName, operationId).GetAwaiter().GetResult(); }