Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public EventTrigger(long time, TriggerTimeType type, bool executeOnce = false, bool executeImmediately = true)
     : base(time, type, -1, executeOnce, executeImmediately)
 {
 }
Esempio n. 3
0
 public TaskTrigger(long time, TriggerTimeType type, int executeLimit = -1, bool executeOnce = false)
     : base(time, type, executeLimit, executeOnce)
 {
 }