Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 public void Foo()
 {
     JobIdAssigner.Reset();
 }