예제 #1
0
        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"));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public async Task RunAnalyzeTool(JobRequest request, string args)
 {
     var job = new Job();
     await job.Run(request, VssRepoPath, FindAnalyzeTool(), args);
 }