ExecuteWaitType.cs 850 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SmartCoalApplication.SystemLayer
  7. {
  8. public enum ExecuteWaitType
  9. {
  10. /// <summary>
  11. /// Returns immediately after executing without waiting for the task to finish.
  12. /// </summary>
  13. ReturnImmediately,
  14. /// <summary>
  15. /// Waits until the task exits before returning control to the calling method.
  16. /// </summary>
  17. WaitForExit,
  18. /// <summary>
  19. /// Returns immediately after executing without waiting for the task to finish.
  20. /// However, another task will be spawned that will wait for the requested task
  21. /// to finish, and it will then relaunch if the task was successful.
  22. /// </summary>
  23. RelaunchPdnOnExit
  24. }
  25. }