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

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; }
    }
}