Class CmdRunner
Run cmd.exe and provide executing lines to it. Execution runs one by one, but log results are mixed. And I have no idea how to fix this problem
Inheritance
object
CmdRunner
Namespace: BuildSystem.Utils.Executor
Assembly: BuildSystem.Utils.Executor.dll
Syntax
public class CmdRunner : Object
Constructors
CmdRunner(ILogger?)
Run cmd.exe and provide executing lines to it
Declaration
public CmdRunner(ILogger? logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger | logger |
Properties
Logger
Logging object
Declaration
public ILogger? Logger { get; }
Property Value
| Type | Description |
|---|---|
| ILogger |
Loggers
List of additional loggers
Declaration
public List<ILogger> Loggers { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<><ILogger> |
Methods
Execute(List<ExeLine>, string, int)
Running cmd.exe and executes all commandLines
Declaration
public bool Execute(List<ExeLine> commandLines, string workdir, int timeout = 60000)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<><ExeLine> | commandLines | Array of executing commands |
| string | workdir | Working folder when runs program |
| int | timeout | Time for waiting executing |
Returns
| Type | Description |
|---|---|
| bool |