public EnableAutoScale ( |
||
parameters | The parameters specifying the pool and autoscale parameters. | |
Résultat | void |
public static void EnableAutoScale(BatchController controller, BatchAccountContext context, string poolId) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); string formula = "$TargetDedicated=2"; AutoScaleParameters parameters = new AutoScaleParameters(context, poolId, null, formula); client.EnableAutoScale(parameters); }
public static void EnableAutoScale(BatchController controller, BatchAccountContext context, string poolId) { RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); string formula = "$TargetDedicated=2"; AutoScaleParameters parameters = new AutoScaleParameters(context, poolId, null, formula, behaviors); client.EnableAutoScale(parameters); }
public static void EnableAutoScale(BatchController controller, BatchAccountContext context, string poolId) { RequestInterceptor interceptor = CreateHttpRecordingInterceptor(); BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor }; BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); string formula = "$TargetDedicated=2"; AutoScaleParameters parameters = new AutoScaleParameters(context, poolId, null, formula, behaviors); client.EnableAutoScale(parameters); }
public static void EnableAutoScale(BatchController controller, BatchAccountContext context, string poolId) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); string formula = "$TargetDedicated=2"; AutoScaleParameters parameters = new AutoScaleParameters(context, poolId, null, formula); client.EnableAutoScale(parameters); }