2016-11-01 03:07:45 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Diagnostics
|
|
|
|
|
{
|
|
|
|
|
public interface IProcessFactory
|
|
|
|
|
{
|
|
|
|
|
IProcess Create(ProcessOptions options);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ProcessOptions
|
|
|
|
|
{
|
|
|
|
|
public String FileName { get; set; }
|
|
|
|
|
public String Arguments { get; set; }
|
|
|
|
|
public String WorkingDirectory { get; set; }
|
|
|
|
|
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; }
|
2016-11-01 04:07:12 +00:00
|
|
|
|
public bool RedirectStandardOutput { get; set; }
|
2016-11-01 03:07:45 +00:00
|
|
|
|
public bool IsHidden { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|