namespace MiaoYu.Api.Admin.ApplicationServices.Core.Quartz; /// /// Quartz 启动配置 /// public static class QuartzConfig { /// /// 启动 quartz /// /// public static void UseQuartzStartup(this IApplicationBuilder app) { using var scope = app.ApplicationServices.CreateScope(); var _taskService = scope.ServiceProvider.GetRequiredService(); _taskService.RecoveryTaskAsync().Wait(); } }