/// <summary> /// Build job instance /// </summary> /// <param name="type">Type of job to build</param> /// <param name="customParameter">Job argument (optional)</param> /// <returns>This builder</returns> public JobBuilder <T1, T2> Build(JobType type, string customParameter = null) { var id = JobIdAssigner.AssignId(); Job = new Job(id, type); SetArgument(id, customParameter); SetWork(); return(this); }
public void Foo() { JobIdAssigner.Reset(); }