diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-26 16:06:01 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-26 16:06:01 -0500 |
| commit | f008a11684fedd3b3100c87313225775d5ac4505 (patch) | |
| tree | c8acd6e7ad9e5dfeef0a984879a650ecc8b86c10 /MediaBrowser.Controller/Updates/InstallationManager.cs | |
| parent | 51b3c32e2cc84778212531d72665d2c5f567f34a (diff) | |
| parent | 0c8d924bfc64f91b7883507ebdfdc664a8495465 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Controller/Updates/InstallationManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/Updates/InstallationManager.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Updates/InstallationManager.cs b/MediaBrowser.Controller/Updates/InstallationManager.cs index efef87f86..64b72ae63 100644 --- a/MediaBrowser.Controller/Updates/InstallationManager.cs +++ b/MediaBrowser.Controller/Updates/InstallationManager.cs @@ -3,6 +3,7 @@ using MediaBrowser.Common.Kernel; using MediaBrowser.Common.Net; using MediaBrowser.Common.Plugins; using MediaBrowser.Common.Progress; +using MediaBrowser.Common.Updates; using MediaBrowser.Model.IO; using MediaBrowser.Model.Logging; using MediaBrowser.Model.Serialization; @@ -21,18 +22,18 @@ namespace MediaBrowser.Controller.Updates /// <summary> /// Manages all install, uninstall and update operations (both plugins and system) /// </summary> - public class InstallationManager : BaseManager<Kernel> + public class InstallationManager : BaseManager<Kernel>, IInstallationManager { /// <summary> /// The current installations /// </summary> - public readonly List<Tuple<InstallationInfo, CancellationTokenSource>> CurrentInstallations = - new List<Tuple<InstallationInfo, CancellationTokenSource>>(); + public List<Tuple<InstallationInfo, CancellationTokenSource>> CurrentInstallations { get; set; } + /// <summary> /// The completed installations /// </summary> - public readonly ConcurrentBag<InstallationInfo> CompletedInstallations = new ConcurrentBag<InstallationInfo>(); + public ConcurrentBag<InstallationInfo> CompletedInstallations { get; set; } #region PluginUninstalled Event /// <summary> @@ -161,6 +162,8 @@ namespace MediaBrowser.Controller.Updates throw new ArgumentNullException("httpClient"); } + CurrentInstallations = new List<Tuple<InstallationInfo, CancellationTokenSource>>(); + CompletedInstallations = new ConcurrentBag<InstallationInfo>(); JsonSerializer = jsonSerializer; HttpClient = httpClient; ApplicationHost = appHost; |
