IProcessFactory.cs 743 B

12345678910111213141516171819202122
  1. namespace MediaBrowser.Model.Diagnostics
  2. {
  3. public interface IProcessFactory
  4. {
  5. IProcess Create(ProcessOptions options);
  6. }
  7. public class ProcessOptions
  8. {
  9. public string FileName { get; set; }
  10. public string Arguments { get; set; }
  11. public string WorkingDirectory { get; set; }
  12. public bool CreateNoWindow { get; set; }
  13. public bool UseShellExecute { get; set; }
  14. public bool EnableRaisingEvents { get; set; }
  15. public bool ErrorDialog { get; set; }
  16. public bool RedirectStandardError { get; set; }
  17. public bool RedirectStandardInput { get; set; }
  18. public bool RedirectStandardOutput { get; set; }
  19. public bool IsHidden { get; set; }
  20. }
  21. }