rework concurrency (#1199)

This commit is contained in:
Jason Dove
2023-03-08 21:23:18 -06:00
committed by GitHub
parent e7e20de502
commit 234e93349b
28 changed files with 323 additions and 259 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
@using ErsatzTV.Core.Emby
@implements IDisposable
@inject IEmbySecretStore _embySecretStore
@inject ChannelWriter<IEmbyBackgroundServiceRequest> _channel
@inject ChannelWriter<IScannerBackgroundServiceRequest> _scannerWorkerChannel
<RemoteMediaSources
TViewModel="EmbyMediaSourceViewModel"
@@ -26,6 +26,6 @@
}
private async Task RefreshLibraries(int mediaSourceId) =>
await _channel.WriteAsync(new SynchronizeEmbyLibraries(mediaSourceId), _cts.Token);
await _scannerWorkerChannel.WriteAsync(new SynchronizeEmbyLibraries(mediaSourceId), _cts.Token);
}