Suppress scope notifications during migrations
This commit is contained in:
19
src/Umbraco.Core/Notifications/MigrationPlanExecuted.cs
Normal file
19
src/Umbraco.Core/Notifications/MigrationPlanExecuted.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Umbraco.Cms.Core.Notifications
|
||||
{
|
||||
/// <summary>
|
||||
/// Published when a migration plan has been successfully executed.
|
||||
/// </summary>
|
||||
public class MigrationPlanExecuted : INotification
|
||||
{
|
||||
public MigrationPlanExecuted(string migrationPlanName, string initialState, string finalState)
|
||||
{
|
||||
MigrationPlanName = migrationPlanName;
|
||||
InitialState = initialState;
|
||||
FinalState = finalState;
|
||||
}
|
||||
|
||||
public string MigrationPlanName { get; }
|
||||
public string InitialState { get; }
|
||||
public string FinalState { get; }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
namespace Umbraco.Cms.Core.Notifications
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Used to notify when the core runtime can do an unattended upgrade.
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Umbraco.Cms.Core.Notifications
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Published when unattended package migrations have been successfully executed
|
||||
/// </summary>
|
||||
public class UnattendedPackageMigrationsExecutedNotification : INotification
|
||||
{
|
||||
public UnattendedPackageMigrationsExecutedNotification(IReadOnlyList<string> packageMigrations)
|
||||
=> PackageMigrations = packageMigrations;
|
||||
|
||||
/// <summary>
|
||||
/// The list of package migration names that have been executed.
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> PackageMigrations { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user