代码整理

This commit is contained in:
智能石头 2021-02-26 10:30:29 +08:00
parent f6e934f9ab
commit c2a405094d
4 changed files with 5 additions and 8 deletions

View File

@ -46,8 +46,8 @@ namespace AntJob.Agent
// 添加作业处理器
//sc.Handlers.Add(new CSharpHandler());
sc.Handlers.Add(new SqlHandler());
sc.Handlers.Add(new SqlMessage());
sc.AddHandler<SqlHandler>();
sc.AddHandler<SqlMessage>();
// 启动调度引擎,调度器内部多线程处理
sc.Start();

View File

@ -1,8 +1,6 @@
using System;
using System.Linq;
using AntJob.Data;
using AntJob.Extensions;
using AntJob.Providers;
using NewLife.Data;
using XCode.DataAccessLayer;

View File

@ -1,6 +1,5 @@
using System;
using System.Linq;
using System.Threading;
using AntJob.Data;
using AntJob.Extensions;
using AntJob.Handlers;

View File

@ -25,9 +25,9 @@ namespace HisAgent
};
// 添加作业处理器
sc.Handlers.Add(new HelloJob());
sc.Handlers.Add(new BuildPatient());
sc.Handlers.Add(new BuildWill());
sc.AddHandler<HelloJob>();
sc.AddHandler<BuildPatient>();
sc.AddHandler<BuildWill>();
// 启动调度引擎,调度器内部多线程处理
sc.Start();