IProcess.cs 597 B

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