Пример #1
0
        public TaskServer(TaskServerConfiguration config, IKernel kernel, TaskEngine engine) : base(config, kernel)
        {
            Engine = engine;
            Config = config;

            Engine.AddTask(DbTaskType.prune_database.ToString(), typeof(PruneDatabaseTask));
            Engine.AddTask(DbTaskType.bonus.ToString(), typeof(BonusTask));
        }
Пример #2
0
        public TaskServer(TaskServerConfiguration config, IKernel kernel, TaskEngine engine) : base(config, kernel)
        {
            Engine = engine;
            Config = config;

            Engine.AddTask(DbTaskType.prune_database.ToString(), typeof(PruneDatabaseTask));
            Engine.AddTask(DbTaskType.bonus.ToString(), typeof(BonusTask));
            Engine.AddTask(DbTaskType.shutdown.ToString(), typeof(ShutdownTask));
            Engine.AddTask(DbTaskType.job_balance.ToString(), typeof(JobBalanceTask));
            Engine.AddTask(DbTaskType.neighborhood_tick.ToString(), typeof(NeighborhoodsTask));
        }