/// <summary>
 /// CancelJob.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The Resource Group Name
 /// </param>
 /// <param name='jobName'>
 /// The name of the job Resource within the specified resource group. job names
 /// must be between 3 and 24 characters in length and use any alphanumeric and
 /// underscore only
 /// </param>
 /// <param name='reason'>
 /// Reason for cancellation.
 /// </param>
 public static void Cancel(this IJobsOperations operations, string resourceGroupName, string jobName, string reason)
 {
     operations.CancelAsync(resourceGroupName, jobName, reason).GetAwaiter().GetResult();
 }
Пример #2
0
 /// <summary>
 /// Cancels the given job.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataServiceName'>
 /// The name of the data service of the job definition.
 /// </param>
 /// <param name='jobDefinitionName'>
 /// The name of the job definition of the job.
 /// </param>
 /// <param name='jobId'>
 /// The job id of the job queried.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The Resource Group Name
 /// </param>
 /// <param name='dataManagerName'>
 /// The name of the DataManager Resource within the specified resource group.
 /// DataManager names must be between 3 and 24 characters in length and use any
 /// alphanumeric and underscore only
 /// </param>
 public static void Cancel(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string jobId, string resourceGroupName, string dataManagerName)
 {
     operations.CancelAsync(dataServiceName, jobDefinitionName, jobId, resourceGroupName, dataManagerName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Cancels a job on the device.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name
 /// </param>
 /// <param name='jobName'>
 /// The jobName.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 public static void Cancel(this IJobsOperations operations, string deviceName, string jobName, string resourceGroupName, string managerName)
 {
     operations.CancelAsync(deviceName, jobName, resourceGroupName, managerName).GetAwaiter().GetResult();
 }
Пример #4
0
 /// <summary>
 /// Cancel a job.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobId'>
 /// Id of the job.
 /// </param>
 public static void Cancel(this IJobsOperations operations, string jobId)
 {
     operations.CancelAsync(jobId).GetAwaiter().GetResult();
 }