ControlJob.cs 699 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MECF.Framework.Common.Jobs
  4. {
  5. [Serializable]
  6. public class ControlJobInfo
  7. {
  8. public string Name { get; set; }
  9. public Guid InnerId { get; set; }
  10. public string Module { get; set; }
  11. public List<string> ProcessJobNameList { get; set; }
  12. public EnumControlJobState State { get; set; }
  13. public ControlJobInfo()
  14. {
  15. ProcessJobNameList = new List<string>();
  16. State = EnumControlJobState.Queued;
  17. InnerId = Guid.NewGuid();
  18. }
  19. public void SetState(EnumControlJobState state)
  20. {
  21. State = state;
  22. }
  23. }
  24. }