IQuartzJobService.cs 567 B

12345678910111213141516171819202122232425
  1. using IMCS.CCS.Entitys;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace IMCS.CCS.Service
  7. {
  8. public interface IQuartzJobService
  9. {
  10. /// <summary>
  11. /// 开始运行一个任务调度器
  12. /// </summary>
  13. /// <returns></returns>
  14. Task<bool> RunAsync(Tasks tasks);
  15. /// <summary>
  16. /// 关闭任务调度
  17. /// </summary>
  18. /// <param name="tasks"></param>
  19. /// <returns></returns>
  20. Task<bool> CloseAsync(Tasks tasks);
  21. }
  22. }