mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-24 05:22:22 +00:00
22 lines
654 B
C#
22 lines
654 B
C#
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using MalwareMultiScan.Api.Data.Models;
|
|
|
|
namespace MalwareMultiScan.Api.Services.Interfaces
|
|
{
|
|
public interface IScanResultService
|
|
{
|
|
Task<ScanResult> CreateScanResult();
|
|
|
|
Task<ScanResult> GetScanResult(string id);
|
|
|
|
Task UpdateScanResultForBackend(string resultId, string backendId, long duration,
|
|
bool completed = false, bool succeeded = false, string[] threats = null);
|
|
|
|
Task QueueUrlScan(ScanResult result, string fileUrl);
|
|
|
|
Task<string> StoreFile(string fileName, Stream fileStream);
|
|
|
|
Task<Stream> ObtainFile(string id);
|
|
}
|
|
} |