public SingleTrigger(DateTime time, int tryTimes = 0, TimeSpan?timeInterval = null) { if (tryTimes > 0) { this.subJob = new EmptyJob(); this.subTrigger = new RepeatTrigger(timeInterval, time, tryTimes); } else { this.timeLimiter = new SingleTimeLimiter(time); } }