added a notifications service
This commit is contained in:
@@ -11,10 +11,10 @@ namespace MediaBrowser.Common.Updates
|
||||
{
|
||||
public interface IInstallationManager : IDisposable
|
||||
{
|
||||
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstalling;
|
||||
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCompleted;
|
||||
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationFailed;
|
||||
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCancelled;
|
||||
event EventHandler<InstallationEventArgs> PackageInstalling;
|
||||
event EventHandler<InstallationEventArgs> PackageInstallationCompleted;
|
||||
event EventHandler<InstallationFailedEventArgs> PackageInstallationFailed;
|
||||
event EventHandler<InstallationEventArgs> PackageInstallationCancelled;
|
||||
|
||||
/// <summary>
|
||||
/// The current installations
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using MediaBrowser.Model.Updates;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Common.Updates
|
||||
{
|
||||
public class InstallationEventArgs
|
||||
{
|
||||
public InstallationInfo InstallationInfo { get; set; }
|
||||
|
||||
public PackageVersionInfo PackageVersionInfo { get; set; }
|
||||
}
|
||||
|
||||
public class InstallationFailedEventArgs : InstallationEventArgs
|
||||
{
|
||||
public Exception Exception { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user