jellyfin/MediaBrowser.Model/Diagnostics/IProcess.cs

22 lines
537 B
C#
Raw Normal View History

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