/// <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 BeginCancel(this IJobsOperations operations, string deviceName, string jobName, string resourceGroupName, string managerName) { operations.BeginCancelAsync(deviceName, jobName, resourceGroupName, managerName).GetAwaiter().GetResult(); }
/// <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 BeginCancel(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string jobId, string resourceGroupName, string dataManagerName) { operations.BeginCancelAsync(dataServiceName, jobDefinitionName, jobId, resourceGroupName, dataManagerName).GetAwaiter().GetResult(); }