/// <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> BeginCancellingAsync(this IJobOperations operations, string jobName, CustomRequestHeaders customRequestHeaders) { return(operations.BeginCancellingAsync(jobName, customRequestHeaders, CancellationToken.None)); }