IProcess.cs 566 B

1234567891011121314151617181920212223
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.IO;
  4. using System.Threading.Tasks;
  5. namespace MediaBrowser.Model.Diagnostics
  6. {
  7. public interface IProcess : IDisposable
  8. {
  9. event EventHandler Exited;
  10. void Kill();
  11. bool WaitForExit(int timeMs);
  12. Task<bool> WaitForExitAsync(int timeMs);
  13. int ExitCode { get; }
  14. void Start();
  15. StreamWriter StandardInput { get; }
  16. StreamReader StandardError { get; }
  17. StreamReader StandardOutput { get; }
  18. ProcessOptions StartInfo { get; }
  19. }
  20. }