using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CallCenter.QuartzService
{
    public class QuartzJob : IJob
    {
        /// <summary>
        /// Cron表达式，可设置多个
        /// </summary>
        public List<string> CronExpressionList;

        /// <summary>
        /// 任务ID
        /// </summary>
        public int jobID;

        /// <summary>
        /// 执行的任务委托
        /// </summary>
        public event EventHandler DoWork;
        public void Execute(IJobExecutionContext context)
        {
            DoWork(context, null);
        }
    }
}
