From 98c0b28d14d68cc2989fb60fb09dde0501a8d928 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 30 Apr 2014 11:07:02 -0400 Subject: re-enable mobile media controller --- .../BaseApplicationHost.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Common.Implementations/BaseApplicationHost.cs') diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs index 5aa83abf4..4946241fd 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs @@ -1,5 +1,4 @@ -using System.Text; -using MediaBrowser.Common.Configuration; +using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Events; using MediaBrowser.Common.Implementations.Archiving; using MediaBrowser.Common.Implementations.IO; @@ -26,6 +25,7 @@ using System.IO; using System.Linq; using System.Net; using System.Reflection; +using System.Text; using System.Threading; using System.Threading.Tasks; @@ -46,7 +46,7 @@ namespace MediaBrowser.Common.Implementations /// /// Occurs when [application updated]. /// - public event EventHandler> ApplicationUpdated; + public event EventHandler> ApplicationUpdated; /// /// Gets or sets a value indicating whether this instance has changes that require the entire application to restart. @@ -759,12 +759,16 @@ namespace MediaBrowser.Common.Implementations /// /// Called when [application updated]. /// - /// The new version. - protected void OnApplicationUpdated(Version newVersion) + /// The package. + protected void OnApplicationUpdated(PackageVersionInfo package) { - Logger.Info("Application has been updated to version {0}", newVersion); + Logger.Info("Application has been updated to version {0}", package.versionStr); - EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs { Argument = newVersion }, Logger); + EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs + { + Argument = package + + }, Logger); NotifyPendingRestart(); } -- cgit v1.2.3