mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:37:23 +01:00
rework service disposal
This commit is contained in:
parent
ef5e77017f
commit
2ca3e639b4
24 changed files with 299 additions and 265 deletions
|
|
@ -186,7 +186,7 @@ public partial class ApiController
|
|||
|
||||
public async Task DownloadFiles(int currentDownloadId, List<FileReplacementData> fileReplacementDto, CancellationToken ct)
|
||||
{
|
||||
_mediator.Publish(new HaltScanMessage("Download"));
|
||||
Mediator.Publish(new HaltScanMessage("Download"));
|
||||
try
|
||||
{
|
||||
await DownloadFilesInternal(currentDownloadId, fileReplacementDto, ct).ConfigureAwait(false);
|
||||
|
|
@ -197,7 +197,7 @@ public partial class ApiController
|
|||
}
|
||||
finally
|
||||
{
|
||||
_mediator.Publish(new ResumeScanMessage("Download"));
|
||||
Mediator.Publish(new ResumeScanMessage("Download"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue