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(); }
internal TimerThread(TimerCategory name, int dueTimeMilliseconds, int periodMilliseconds) { this.Name = name; this.DueTimeMilliseconds = dueTimeMilliseconds; this.PeriodMilliseconds = periodMilliseconds; }