コード例 #1
0
        public IJob Reserve()
        {
            var multi = new MultiQueue(Client, RedisQueues);
            var item  = multi.Pop();

            if (item != null)
            {
                var queueName = GetQueueName(item.Item1);
                return(JobCreator.CreateJob(FailureService, this, item.Item2, queueName));
            }
            return(null);
        }
コード例 #2
0
 private static void Load()
 {
     JobCreator.CreateJob <MailJob>(new JobInfo
     {
         JobName        = "MailJob",
         TriggerName    = "MainJobTrg",
         GroupName      = "MainJobGroup",
         DataParamters  = null,
         CronExpression = "paste here cronmaker time planning string"
     }, ref _scheduler);
     // Define job Daily , weekly and mounthly
 }