mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-24 05:22:22 +00:00
code cleanup
This commit is contained in:
parent
b4c5c1a507
commit
cfcfe92784
@ -18,8 +18,8 @@ namespace MalwareMultiScan.Scanner.Services
|
|||||||
{
|
{
|
||||||
private readonly IScanBackend _backend;
|
private readonly IScanBackend _backend;
|
||||||
private readonly IConfiguration _configuration;
|
private readonly IConfiguration _configuration;
|
||||||
private readonly ILogger<ScanBackgroundJob> _logger;
|
|
||||||
private readonly IBackgroundJobClient _jobClient;
|
private readonly IBackgroundJobClient _jobClient;
|
||||||
|
private readonly ILogger<ScanBackgroundJob> _logger;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initialize scan background job.
|
/// Initialize scan background job.
|
||||||
|
@ -83,7 +83,7 @@ namespace MalwareMultiScan.Tests.Api
|
|||||||
{
|
{
|
||||||
Duration = 100,
|
Duration = 100,
|
||||||
Status = ScanResultStatus.Succeeded,
|
Status = ScanResultStatus.Succeeded,
|
||||||
Threats = new []{"Test"}
|
Threats = new[] {"Test"}
|
||||||
});
|
});
|
||||||
|
|
||||||
result = await _resultService.GetScanResult(result.Id);
|
result = await _resultService.GetScanResult(result.Id);
|
||||||
|
@ -80,9 +80,9 @@ I.e. when you define `callbackUrl=http://localhost:1234/scan-results`, the POST
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"Status":1,
|
"Status": 1,
|
||||||
"Duration":5,
|
"Duration": 5,
|
||||||
"Threats":["Malware.Dummy.Result"]
|
"Threats": ["Malware.Dummy.Result"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -25,8 +25,6 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
ports:
|
ports:
|
||||||
- "8888:8888"
|
- "8888:8888"
|
||||||
expose:
|
|
||||||
- "8888"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user