public override void performOperationStep(DeploymentOperation operationContext) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); PlatformServiceContainer serviceContainer = operationContext.ServiceContainer; ISet <string> serviceNames = serviceContainer.getServiceNames(ServiceTypes.PROCESS_ENGINE); foreach (string serviceName in serviceNames) { stopProcessEngine(serviceName, serviceContainer); } }
public override void performOperationStep(DeploymentOperation operationContext) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); PlatformServiceContainer serviceContainer = operationContext.ServiceContainer; ISet <string> jobExecutorServiceNames = serviceContainer.getServiceNames(ServiceTypes.JOB_EXECUTOR); foreach (string serviceName in jobExecutorServiceNames) { try { serviceContainer.stopService(serviceName); } catch (Exception e) { LOG.exceptionWhileStopping("Job Executor Service", serviceName, e); } } }