IProcessFactory.cs 761 B

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