2019-01-13 20:02:23 +00:00
|
|
|
namespace MediaBrowser.Model.Diagnostics
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
|
|
|
public interface IProcessFactory
|
|
|
|
{
|
|
|
|
IProcess Create(ProcessOptions options);
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ProcessOptions
|
|
|
|
{
|
2019-01-06 20:50:43 +00:00
|
|
|
public string FileName { get; set; }
|
|
|
|
public string Arguments { get; set; }
|
|
|
|
public string WorkingDirectory { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
public bool CreateNoWindow { get; set; }
|
|
|
|
public bool UseShellExecute { get; set; }
|
|
|
|
public bool EnableRaisingEvents { get; set; }
|
|
|
|
public bool ErrorDialog { get; set; }
|
|
|
|
public bool RedirectStandardError { get; set; }
|
|
|
|
public bool RedirectStandardInput { get; set; }
|
|
|
|
public bool RedirectStandardOutput { get; set; }
|
|
|
|
public bool IsHidden { get; set; }
|
|
|
|
}
|
|
|
|
}
|