14 lines
323 B
C#
14 lines
323 B
C#
namespace HanaToolbox.Services.Interfaces;
|
|
|
|
public sealed record ProcessResult(int ExitCode, string StdOut, string StdErr)
|
|
{
|
|
public bool Success => ExitCode == 0;
|
|
}
|
|
|
|
public interface IProcessRunner
|
|
{
|
|
Task<ProcessResult> RunAsync(
|
|
string executable, string[] args,
|
|
CancellationToken ct = default);
|
|
}
|