Пример #1
0
        public void AddTask(TimerCategory timerCategory, string taskName, Type taskPlan, string userId, string dbId)
        {
            TimerThread timerThread = this._TimerThreads[timerCategory];
            TaskInfo    taskInfo    = new TaskInfo(taskName, taskPlan, userId, dbId);

            timerThread.AddTaskInfo(taskInfo);
            timerThread.Start();
        }
Пример #2
0
 internal TimerThread(TimerCategory name, int dueTimeMilliseconds, int periodMilliseconds)
 {
     this.Name = name;
     this.DueTimeMilliseconds = dueTimeMilliseconds;
     this.PeriodMilliseconds  = periodMilliseconds;
 }