change the communication protocol to RMQ

This commit is contained in:
Volodymyr Smirnov
2020-10-26 16:20:47 +02:00
parent b6c3cb4131
commit 29156b7f10
25 changed files with 439 additions and 173 deletions

View File

@@ -8,11 +8,11 @@ namespace MalwareMultiScan.Api.Controllers
[Route("download")]
public class DownloadController : Controller
{
private readonly ScanResultsService _scanResultsService;
private readonly ScanResultService _scanResultService;
public DownloadController(ScanResultsService scanResultsService)
public DownloadController(ScanResultService scanResultService)
{
_scanResultsService = scanResultsService;
_scanResultService = scanResultService;
}
[HttpGet("{id}")]
@@ -20,7 +20,7 @@ namespace MalwareMultiScan.Api.Controllers
[ProducesResponseType(StatusCodes.Status404NotFound)]
public async Task<IActionResult> Index(string id)
{
var fileStream = await _scanResultsService.ObtainFile(id);
var fileStream = await _scanResultService.ObtainFile(id);
if (fileStream == null)
return NotFound();