Exemple #1
0
        public async Task <IActionResult> Init()
        {
            try
            {
                await QuartzManager.InitScheduler();

                return(Ok());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }
Exemple #2
0
        public async Task <IActionResult> StartUp()
        {
            try
            {
                DelayedTask.DelayPlanManager.Init();
                await QuartzManager.InitScheduler();

                return(Ok());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }