예제 #1
0
        public void Add(Trigger trigger)
        {
            if (_triggers.ContainsKey(trigger.Id))
                throw new ApplicationException("This trigger id already exists!");

            _triggers.Add(trigger.Id, trigger);

            if (trigger is CronTrigger)
            {
                QuartzWrapper.Instance.ScheduleCronTrigger((CronTrigger) trigger);
            }
        }
예제 #2
0
 public void Remove(Trigger trigger)
 {
 }