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); } }
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); } }
public void Post(RefreshStudio request) { var task = RefreshStudio(request); Task.WaitAll(task); }
public void Post(RefreshStudio request) { var task = RefreshStudio(request); Task.WaitAll(task); }