示例#1
0
        private async Task RefreshStudio(RefreshStudio request)
        {
            var item = GetStudio(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 RefreshStudio(RefreshStudio request)
        {
            var item = GetStudio(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(RefreshStudio request)
        {
            var task = RefreshStudio(request);

            Task.WaitAll(task);
        }
示例#4
0
        public void Post(RefreshStudio request)
        {
            var task = RefreshStudio(request);

            Task.WaitAll(task);
        }