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