예제 #1
0
        private async Task RefreshMusicGenre(RefreshMusicGenre request)
        {
            var item = GetMusicGenre(request.Name, _libraryManager);

            try
            {
                await item.RefreshMetadata(CancellationToken.None, forceRefresh : request.Forced).ConfigureAwait(false);
            }
            catch (Exception ex)
            {
                Logger.ErrorException("Error refreshing library", ex);
            }
        }
예제 #2
0
        private async Task RefreshMusicGenre(RefreshMusicGenre request)
        {
            var item = GetMusicGenre(request.Name, _libraryManager);

            try
            {
                await item.RefreshMetadata(GetRefreshOptions(request), CancellationToken.None).ConfigureAwait(false);
            }
            catch (Exception ex)
            {
                Logger.ErrorException("Error refreshing library", ex);
            }
        }
예제 #3
0
        public void Post(RefreshMusicGenre request)
        {
            var task = RefreshMusicGenre(request);

            Task.WaitAll(task);
        }
예제 #4
0
        public void Post(RefreshMusicGenre request)
        {
            var task = RefreshMusicGenre(request);

            Task.WaitAll(task);
        }