jellyfin/MediaBrowser.Model/Diagnostics/IProcess.cs

22 lines
537 B
C#
Raw Normal View History

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