QueryErrorTask.cs 692 B

12345678910111213141516171819202122232425
  1. using Aitex.Core.Util;
  2. using athosRT.Devices.EFEM.ABS;
  3. using athosRT.Modules;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace athosRT.Devices.EFEM.Task
  10. {
  11. public class QueryErrorTask : CheckImp, ITask
  12. {
  13. public bool Execute(out string result, params string[] args) => this.Check<NoReadyPolicy>("System", out result);
  14. public bool? Monitor(out string result, params string[] args)
  15. {
  16. result = string.Empty;
  17. if (Singleton<RouteManager1>.Instance.IsError)
  18. result = "INTERNAL/UNDEFINITION";
  19. return new bool?(true);
  20. }
  21. }
  22. }