public TerminateJob ( |
||
parameters | Specifies the job to terminate as well as the terminate reason. | |
Результат | void |
/// <summary> /// Terminates a job /// </summary> public static void TerminateJob(BatchController controller, BatchAccountContext context, string jobId) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); TerminateJobParameters parameters = new TerminateJobParameters(context, jobId, null); client.TerminateJob(parameters); }
/// <summary> /// Terminates a job /// </summary> public static void TerminateJob(BatchController controller, BatchAccountContext context, string jobId) { RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); TerminateJobParameters parameters = new TerminateJobParameters(context, jobId, null, behaviors); client.TerminateJob(parameters); }
/// <summary> /// Terminates a job /// </summary> public static void TerminateJob(BatchController controller, BatchAccountContext context, string jobId) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); TerminateJobParameters parameters = new TerminateJobParameters(context, jobId, null); client.TerminateJob(parameters); }
/// <summary> /// Terminates a job /// </summary> public static void TerminateJob(BatchController controller, BatchAccountContext context, string jobId) { RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); TerminateJobParameters parameters = new TerminateJobParameters(context, jobId, null, behaviors); client.TerminateJob(parameters); }