mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:26:30 +00:00
big refactoring. get rid of static properties and coupled architecture. prepare system for integration tests
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Azaion.Common.Services;
|
||||
|
||||
public class ProcessLauncher : IProcessLauncher
|
||||
{
|
||||
public void Launch(string fileName, string arguments, string? workingDirectory = null)
|
||||
{
|
||||
using var process = new Process();
|
||||
process.StartInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = fileName,
|
||||
Arguments = arguments,
|
||||
WorkingDirectory = workingDirectory ?? "",
|
||||
CreateNoWindow = true
|
||||
};
|
||||
process.Start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user