You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
637 B

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer
  5. {
  6. /// <summary>Cron 运行周期。</summary>
  7. public enum CronCycle
  8. {
  9. /// <summary>只运行一次。</summary>
  10. Once,
  11. /// <summary>每分钟运行。</summary>
  12. Minute,
  13. /// <summary>每小时运行。</summary>
  14. Hour,
  15. /// <summary>每天运行。</summary>
  16. Day,
  17. /// <summary>每周运行,偏移秒数从 <see cref="DayOfWeek.Sunday"/>(星期日)开始计算。</summary>
  18. Week
  19. // 月和年的天数不固定,不提供选择。
  20. }
  21. }