添加项目文件。
This commit is contained in:
29
WPFWCSDemo/Schedules/TaskFinish/TaskFinishSchedule.cs
Normal file
29
WPFWCSDemo/Schedules/TaskFinish/TaskFinishSchedule.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user