Example #1
0
        public async Task StartAsync(CancellationToken cancellationToken)
        {
            _logger.LogInformation("QuartzService start");
            await _quartzManager.InitQuartzService();

            await _quartzManager.Start();
        }
Example #2
0
        public void Start()
        {
            var Job = new QuartzManager();

            Job.Excute <Job1>();

            Job.Start();
        }
Example #3
0
        static void Main(string[] args)
        {
            var Job = new QuartzManager();

            Job.Excute <MyJob>();
            Job.Excute <Job1>();

            Job.Start();

            Console.ReadKey();
        }