basic structure and initial scan request service

This commit is contained in:
Volodymyr Smirnov
2020-10-23 11:11:19 +03:00
parent 46d696cdb1
commit 96695664e0
23 changed files with 242 additions and 168 deletions

View File

@@ -56,13 +56,13 @@ namespace MalwareMultiScan.Backends.Backends.Abstracts
process.WaitForExit();
_logger.LogInformation($"Process has exited with code {process.ExitCode}");
var standardOutput = await process.StandardOutput.ReadToEndAsync();
var standardError = await process.StandardError.ReadToEndAsync();
_logger.LogDebug($"Process standard output: {standardOutput}");
_logger.LogDebug($"Process standard error: {standardError}");
if (ThrowOnNonZeroExitCode && process.ExitCode != 0)
throw new ApplicationException($"Process has terminated with an exit code {process.ExitCode}");