Innovenergy_trunk/csharp/Lib/SysTools/Edges/SysPathToProcess.cs

21 lines
810 B
C#
Raw Normal View History

using InnovEnergy.Lib.SysTools.Process;
2023-02-16 12:57:06 +00:00
namespace InnovEnergy.Lib.SysTools.Edges;
2023-02-16 12:57:06 +00:00
public static class SysPathToProcess
{
public static ProcessResult ExecuteBlocking(this SysPath command, Dictionary<String, String> variables = null, Boolean logToConsole = false)
{
return SysCommandToProcess.ExecuteBlocking(command, variables, logToConsole);
}
public static AsyncProcess ToAsyncProcess(this SysPath command, Dictionary<String, String> variables = null, Boolean logToConsole = false)
{
return new AsyncProcess(command, variables, logToConsole);
}
public static SyncProcess ToSyncProcess(this SysPath command, Dictionary<String, String> variables = null, Boolean logToConsole = false)
{
return new SyncProcess(command, variables, logToConsole);
}
}