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); } }
public void Remove(Trigger trigger) { }