CLI tool for running Playbooks
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.

24 lines
568 B

1 year ago
6 months ago
1 year ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace TrustedUninstaller.Shared.Tasks
  6. {
  7. public enum Scope
  8. {
  9. AllUsers = 0,
  10. CurrentUser = 1,
  11. ActiveUsers = 2,
  12. DefaultUser = 3
  13. }
  14. public interface ITaskAction
  15. {
  16. public int GetProgressWeight();
  17. public void ResetProgress();
  18. public string ErrorString();
  19. public UninstallTaskStatus GetStatus();
  20. public Task<bool> RunTask();
  21. public void RunTaskOnMainThread();
  22. }
  23. }