IProcessFactory.cs 806 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MediaBrowser.Model.Diagnostics
  7. {
  8. public interface IProcessFactory
  9. {
  10. IProcess Create(ProcessOptions options);
  11. }
  12. public class ProcessOptions
  13. {
  14. public String FileName { get; set; }
  15. public String Arguments { get; set; }
  16. public String WorkingDirectory { get; set; }
  17. public bool CreateNoWindow { get; set; }
  18. public bool UseShellExecute { get; set; }
  19. public bool EnableRaisingEvents { get; set; }
  20. public bool ErrorDialog { get; set; }
  21. public bool RedirectStandardError { get; set; }
  22. public bool RedirectStandardInput { get; set; }
  23. public bool IsHidden { get; set; }
  24. }
  25. }