aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Diagnostics/IProcess.cs
blob: d86679876aa61c99fbae7956ca62007eb1894011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma warning disable CS1591
#pragma warning disable SA1600

using System;
using System.IO;
using System.Threading.Tasks;

namespace MediaBrowser.Model.Diagnostics
{
    public interface IProcess : IDisposable
    {
        event EventHandler Exited;

        void Kill();
        bool WaitForExit(int timeMs);
        Task<bool> WaitForExitAsync(int timeMs);
        int ExitCode { get; }
        void Start();
        StreamWriter StandardInput { get; }
        StreamReader StandardError { get; }
        StreamReader StandardOutput { get; }
        ProcessOptions StartInfo { get; }
    }
}