@page "/media/sources/emby" @using ErsatzTV.Application.Emby @using ErsatzTV.Core.Emby @using ErsatzTV.Core.Interfaces.Emby @inject IEmbySecretStore EmbySecretStore @inject ChannelWriter ScannerWorkerChannel @code { private async Task RefreshLibraries(int mediaSourceId, CancellationToken cancellationToken) => await ScannerWorkerChannel.WriteAsync(new SynchronizeEmbyLibraries(mediaSourceId), cancellationToken); }