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(); }
public Scheduler(SchedulerConfiguration config) { configuration = config; }