mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
disable data application and scanner in combat
This commit is contained in:
parent
bcf0d422b8
commit
bd32a55ce5
13 changed files with 95 additions and 43 deletions
|
|
@ -177,7 +177,7 @@ public sealed class FileCacheManager : IDisposable
|
|||
|
||||
public Task<List<FileCacheEntity>> ValidateLocalIntegrity(IProgress<(int, int, FileCacheEntity)> progress, CancellationToken cancellationToken)
|
||||
{
|
||||
_mareMediator.Publish(new HaltScanMessage("IntegrityCheck"));
|
||||
_mareMediator.Publish(new HaltScanMessage(nameof(ValidateLocalIntegrity)));
|
||||
_logger.LogInformation("Validating local storage");
|
||||
var cacheEntries = _fileCaches.SelectMany(v => v.Value).Where(v => v.IsCacheEntry).ToList();
|
||||
List<FileCacheEntity> brokenEntities = new();
|
||||
|
|
@ -212,7 +212,7 @@ public sealed class FileCacheManager : IDisposable
|
|||
}
|
||||
}
|
||||
|
||||
_mareMediator.Publish(new ResumeScanMessage("IntegrityCheck"));
|
||||
_mareMediator.Publish(new ResumeScanMessage(nameof(ValidateLocalIntegrity)));
|
||||
return Task.FromResult(brokenEntities);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue