public TriggerBase(long time, TriggerTimeType type, int executeLimit, bool executeOnce = false, bool executeImmediately = true) { this._time = time; this._type = type; this._executeLimit = executeLimit; this._executeOnce = executeOnce; if (executeImmediately) { this._lastExecutedTime = DateTime.Now.AddMilliseconds(-10 - this.Miliseconds); } else { this._lastExecutedTime = DateTime.Now; } }
public EventTrigger(long time, TriggerTimeType type, bool executeOnce = false, bool executeImmediately = true) : base(time, type, -1, executeOnce, executeImmediately) { }
public TaskTrigger(long time, TriggerTimeType type, int executeLimit = -1, bool executeOnce = false) : base(time, type, executeLimit, executeOnce) { }