Exemple #1
0
        protected override void OnStart(string[] args)
        {
            try
            {
                factory = new Quartz.Impl.StdSchedulerFactory();

                scheduler = factory.GetScheduler();

                scheduler.Start();
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                factory = new Quartz.Impl.StdSchedulerFactory();

                scheduler = factory.GetScheduler();

                scheduler.Start();
            }
            catch (Exception ex)
            {
                String s = ex.Message;
            }
        }