Exemplo n.º 1
0
 /// <summary>
 /// Cancel the job .
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.SiteRecovery.IJobOperations.
 /// </param>
 /// <param name='jobName'>
 /// Required. Job Name.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> CancelAsync(this IJobOperations operations, string jobName, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.CancelAsync(jobName, customRequestHeaders, CancellationToken.None));
 }
 /// <summary>
 /// Cancels the running job specified by the job ID.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountName'>
 /// The Azure Data Lake Analytics account to execute job operations on.
 /// </param>
 /// <param name='jobIdentity'>
 /// Job identifier. Uniquely identifies the job across all jobs submitted to
 /// the service.
 /// </param>
 public static void Cancel(this IJobOperations operations, string accountName, System.Guid jobIdentity)
 {
     operations.CancelAsync(accountName, jobIdentity).GetAwaiter().GetResult();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Cancels the running job specified by the job ID.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataLake.AnalyticsJob.IJobOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Data Lake Analytics account to cancel the
 /// job for
 /// </param>
 /// <param name='jobIdentity'>
 /// Required. JobInfo ID to cancel.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> CancelAsync(this IJobOperations operations, string resourceGroupName, string accountName, Guid jobIdentity)
 {
     return(operations.CancelAsync(resourceGroupName, accountName, jobIdentity, CancellationToken.None));
 }