Suppress scope notifications during migrations

This commit is contained in:
Shannon
2021-08-17 11:13:46 -06:00
parent 4b7481955a
commit 4b57366ca0
15 changed files with 194 additions and 102 deletions

View 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; }
}
}

View File

@@ -1,5 +1,6 @@
namespace Umbraco.Cms.Core.Notifications
{
/// <summary>
/// Used to notify when the core runtime can do an unattended upgrade.
/// </summary>

View File

@@ -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; }
}
}