public Task Repair(JobRequest request) { ValidateInputs(); string analyzeResultPath = Path.Combine(VssRepoPath, "analyze-results-fix"); if (!Directory.Exists(analyzeResultPath)) { Directory.CreateDirectory(analyzeResultPath); } return(RunAnalyzeTool(request, "-banalyze-results-fix -f -d -v4 -i- data")); }
public Task Run(JobRequest request, string workingDir, string appPath, string args) { Request = request; var startInfo = new ProcessStartInfo { WorkingDirectory = workingDir, FileName = appPath, Arguments = args }; Process = Process.Start(startInfo); Process.Exited += Process_Exited; Process.EnableRaisingEvents = true; Request.CancellationToken.Register(() => Process?.Kill()); return(RunTask.Task); }
public async Task RunAnalyzeTool(JobRequest request, string args) { var job = new Job(); await job.Run(request, VssRepoPath, FindAnalyzeTool(), args); }