diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-28 09:26:27 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-28 09:26:27 -0400 |
| commit | 1e49857765d0809604de18395867a6f5c2cce275 (patch) | |
| tree | 3675fbaad6c4d9f8ca83bc3aa0871d0245f908f9 /MediaBrowser.Server.Implementations/Updates/InstallationManager.cs | |
| parent | 28be50b0f18fa2800f67d7ff2466c1695b9e77d7 (diff) | |
use static package method when checking for plugin updates from dashboard page
Diffstat (limited to 'MediaBrowser.Server.Implementations/Updates/InstallationManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Updates/InstallationManager.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs b/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs index 4dd9c47d1..45988c9ec 100644 --- a/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs +++ b/MediaBrowser.Server.Implementations/Updates/InstallationManager.cs @@ -181,11 +181,11 @@ namespace MediaBrowser.Server.Implementations.Updates /// <param name="packageType">Type of the package.</param> /// <param name="applicationVersion">The application version.</param> /// <returns>Task{List{PackageInfo}}.</returns> - protected async Task<IEnumerable<PackageInfo>> GetAvailablePackagesStatic(CancellationToken cancellationToken, + protected async Task<IEnumerable<PackageInfo>> GetAvailablePackagesWithoutRegistrationInfo(CancellationToken cancellationToken, PackageType? packageType = null, Version applicationVersion = null) { - var packages = (await _packageManager.GetAvailablePackagesStatic(cancellationToken).ConfigureAwait(false)).ToList(); + var packages = (await _packageManager.GetAvailablePackagesWithoutRegistrationInfo(cancellationToken).ConfigureAwait(false)).ToList(); return FilterPackages(packages, packageType, applicationVersion); } @@ -304,9 +304,9 @@ namespace MediaBrowser.Server.Implementations.Updates /// <param name="withAutoUpdateEnabled">if set to <c>true</c> [with auto update enabled].</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task{IEnumerable{PackageVersionInfo}}.</returns> - public async Task<IEnumerable<PackageVersionInfo>> GetAvailablePluginUpdatesStatic(bool withAutoUpdateEnabled, CancellationToken cancellationToken) + public async Task<IEnumerable<PackageVersionInfo>> GetAvailablePluginUpdatesWithoutRegistrationInfo(bool withAutoUpdateEnabled, CancellationToken cancellationToken) { - var catalog = await GetAvailablePackagesStatic(cancellationToken).ConfigureAwait(false); + var catalog = await GetAvailablePackagesWithoutRegistrationInfo(cancellationToken).ConfigureAwait(false); return FilterCatalog(catalog, withAutoUpdateEnabled); } |
