fixed app update notifications

This commit is contained in:
LukePulverenti 2013-03-11 15:36:32 -04:00
parent f9e760cd90
commit ed3ffc6c27
2 changed files with 9 additions and 1 deletions

View File

@ -581,6 +581,8 @@ namespace MediaBrowser.Common.Implementations
await PackageManager.InstallPackage(progress, package, cancellationToken).ConfigureAwait(false); await PackageManager.InstallPackage(progress, package, cancellationToken).ConfigureAwait(false);
EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> { Argument = package.version }, Logger); EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> { Argument = package.version }, Logger);
NotifyPendingRestart();
} }
/// <summary> /// <summary>

View File

@ -1,4 +1,5 @@
using MediaBrowser.Common.Plugins; using MediaBrowser.Common.Events;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Updates; using MediaBrowser.Model.Updates;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -12,6 +13,11 @@ namespace MediaBrowser.Common
/// </summary> /// </summary>
public interface IApplicationHost public interface IApplicationHost
{ {
/// <summary>
/// Occurs when [application updated].
/// </summary>
event EventHandler<GenericEventArgs<Version>> ApplicationUpdated;
/// <summary> /// <summary>
/// Performs the pending restart. /// Performs the pending restart.
/// </summary> /// </summary>