Exemplo n.º 1
0
            public ChannelExpression ScheduledBy(IScheduleRule rule)
            {
                var job = new ScheduledJob <TJob>(rule);

                _parent._parent.AlterSettings <ScheduledJobGraph>(x => x.Jobs.Add(job));

                return(new ChannelExpression(job));
            }
Exemplo n.º 2
0
 public ScheduledJob(IScheduleRule scheduler)
 {
     Scheduler = scheduler;
     Timeout   = 5.Minutes();
     MaximumTimeBeforeRescheduling = 15.Minutes();
 }