mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 03:18:27 +01:00
added a notifications service
This commit is contained in:
@@ -18,11 +18,6 @@ namespace MediaBrowser.Common
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<Version>> ApplicationUpdated;
|
||||
|
||||
/// <summary>
|
||||
/// Performs the pending restart.
|
||||
/// </summary>
|
||||
void PerformPendingRestart();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance has pending kernel reload.
|
||||
/// </summary>
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
<Compile Include="Security\IRequiresRegistration.cs" />
|
||||
<Compile Include="Security\ISecurityManager.cs" />
|
||||
<Compile Include="Updates\IInstallationManager.cs" />
|
||||
<Compile Include="Updates\InstallationEventArgs.cs" />
|
||||
<Compile Include="Updates\IPackageManager.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -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
|
||||
|
||||
17
MediaBrowser.Common/Updates/InstallationEventArgs.cs
Normal file
17
MediaBrowser.Common/Updates/InstallationEventArgs.cs
Normal file
@@ -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