/// <summary> /// Initializes a new instance of <see cref="ProcessRunner"/>. /// </summary> /// <param name="filename">Filename of the executable to be run.</param> /// <param name="arguments">Argument to launch executables with.</param> /// <param name="showWindow">True if a new window should be created for every process instance; otherwise, false.</param> /// <param name="messageFormatter"><see cref="IMessageFormatter"/> instance which defines output format, default is <see cref="NoMessagesMessageFormatter"/>.</param> public ProcessRunner(string filename, IList <string> arguments, bool showWindow = false, IMessageFormatter messageFormatter = null) { this.processCreator = new ProcessCreator(filename, arguments, showWindow); this.messageFormatter = messageFormatter ?? MessageFormatter.NoMessages; }
private ProcessRunner(ProcessCreator processCreator, IMessageFormatter messageFormatter) { this.processCreator = processCreator; this.messageFormatter = messageFormatter; }