12345678910111213141516171819202122232425 |
- using IMCS.CCS.Entitys;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace IMCS.CCS.Service
- {
- public interface IQuartzJobService
- {
- /// <summary>
- /// 开始运行一个任务调度器
- /// </summary>
- /// <returns></returns>
- Task<bool> RunAsync(Tasks tasks);
- /// <summary>
- /// 关闭任务调度
- /// </summary>
- /// <param name="tasks"></param>
- /// <returns></returns>
- Task<bool> CloseAsync(Tasks tasks);
- }
- }
|