using Quartz; using Serilog; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WPFWCSDemo.Schedules.TaskFinish { public class TaskFinishSchedule : IJob { public Task Execute(IJobExecutionContext context) { Application.Current.Dispatcher.InvokeAsync(() => { Finish.TaskFinish(); Handler.TaskForSendFailedHandler(); Handler.TaskExceptionHandler(); Delete.TaskDelete(); //Log.Information($"-----------------任务处理调度-----------------"); }); return Task.CompletedTask; } } }