jellyfin/MediaBrowser.Model/Diagnostics/IProcess.cs

22 lines
537 B
C#
Raw Normal View History

2016-10-31 20:07:45 -07:00
using System;
using System.IO;
2017-05-25 23:48:54 -07:00
using System.Threading.Tasks;
2016-10-31 20:07:45 -07:00
namespace MediaBrowser.Model.Diagnostics
{
public interface IProcess : IDisposable
{
event EventHandler Exited;
void Kill();
bool WaitForExit(int timeMs);
2017-05-25 23:48:54 -07:00
Task<bool> WaitForExitAsync(int timeMs);
2016-10-31 20:07:45 -07:00
int ExitCode { get; }
void Start();
StreamWriter StandardInput { get; }
StreamReader StandardError { get; }
StreamReader StandardOutput { get; }
ProcessOptions StartInfo { get; }
}
}