public ExternalTaskWorker startSempahoreWorker(String traceId) { ExternalTaskWorkerInfo taskWorkerInfo = new ExternalTaskWorkerInfo { TopicName = "paymentResponseV4-" + traceId, TaskAdapter = new NotifySemaphoreAdapter() }; ExternalTaskWorker worker = new CamundaClient.Worker.ExternalTaskWorker( // Program.Camunda.ExternalTaskService, // taskWorkerInfo); worker.StartWork(); return(worker); }
public ExternalTaskWorker(ExternalTaskService externalTaskService, ExternalTaskWorkerInfo taskWorkerInfo) { this.externalTaskService = externalTaskService; this.taskWorkerInfo = taskWorkerInfo; }