-
Hello Everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Add In public interface IJobWorkerBuilderStep3 Add in class JobWorkerBuilder Usage: |
Beta Was this translation helpful? Give feedback.
Add In public interface IJobWorkerBuilderStep3
/// <summary> /// Specifies tenantIds used by this job worker. /// </summary> /// /// <para> /// tenantIds /// </para> /// /// <para>Note: tenantIds.</para> /// <param name="tenantIds">handler thread count, needs to be larger then zero</param> /// <returns>the builder for this worker</returns> IJobWorkerBuilderStep3 TenantIds(List<string> tenantIds);
Add in class JobWorkerBuilder
public IJobWorkerBuilderStep3 TenantIds(List<string> tenenatIds) { Request.TenantIds.AddRange(tenenatIds); return this; }
Usage:
JobWorker worker = (JobWorker) zeebeClient.NewWorker() .JobType(processInstance.JobType) .Handler(JobHandler) .MaxJobsActive(3) .PollInt…