public PreventiveSchedulerService()
        {
            InitializeComponent();
            _cancelSource = new CancellationTokenSource();
            _scheduler    = new PreventiveScheduler();
            int    timerInterval = int.Parse(ConfigurationManager.AppSettings["TimerInterval"]);
            double interval      = timerInterval * 60 * 1000;

            _timer          = new System.Timers.Timer(interval);
            _timer.Elapsed += _timer_Elapsed;
        }
Example #2
0
 public frmMain()
 {
     InitializeComponent();
     _cancelSource = new CancellationTokenSource();
     _scheduler    = new PreventiveScheduler();
 }