示例#1
0
        void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes();





            SchedulerConfiguration config = new SchedulerConfiguration(1000 * 3);

            config.Jobs.Add(new SampleJob());

            Scheduler scheduler = new Scheduler(config);

            System.Threading.ThreadStart myThreadStart = new System.Threading.ThreadStart(scheduler.Start);

            System.Threading.Thread schedulerThread = new System.Threading.Thread(myThreadStart);

            schedulerThread.Start();

        }
示例#2
0
        public Scheduler(SchedulerConfiguration config)
        {

            configuration = config;

        }