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 static void Initialize() { TimerThread timerThread = new TimerThread(TimerCategory.SessionTask, 600000, 300000); TimerManager._TaskManager._TimerThreads.TryAdd(TimerCategory.SessionTask, timerThread); TimerThread timerThread2 = new TimerThread(TimerCategory.TableCacheTask, 300000, 60000); TimerManager._TaskManager._TimerThreads.TryAdd(TimerCategory.TableCacheTask, timerThread2); TimerThread timerThread3 = new TimerThread(TimerCategory.TimeModuleTask, 60000, 60000); TimerManager._TaskManager._TimerThreads.TryAdd(TimerCategory.TimeModuleTask, timerThread3); }