fixed app update notifications

pull/702/head
LukePulverenti 12 years ago
parent f9e760cd90
commit ed3ffc6c27

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

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

Loading…
Cancel
Save