Esempio n. 1
0
        public Scheduler(int repeatInterval, ParsingService service)
        {
            this.service = service;
            RepeatInterval = TimeSpan.FromSeconds(repeatInterval);
            // construct a scheduler factory
            schedFact = new StdSchedulerFactory();

            // get a scheduler
            sched = schedFact.GetScheduler();
            sched.Start();
            State = RunningState.Waiting;
        }
 public static ParsingService getParsingService()
 {
     if (service == null) service = new ParsingService();
     return service;
 }