Exemplo n.º 1
0
        public async Task <IActionResult> Shutdown()
        {
            try
            {
                await QuartzManager.Shutdown(false);

                return(Ok());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Shutdown()
        {
            try
            {
                DelayedTask.DelayPlanManager.Clear();
                await QuartzManager.Shutdown(false);

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