Make DatabaseSchema notifications stateful
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace Umbraco.Cms.Core.Events
|
||||
{
|
||||
public class CancelableNotification : ICancelableNotification
|
||||
public class CancelableNotification : StatefulNotification, ICancelableNotification
|
||||
{
|
||||
public bool Cancel { get; set; }
|
||||
public void CancelOperation()
|
||||
|
||||
@@ -2,7 +2,7 @@ using Umbraco.Cms.Core.Events;
|
||||
|
||||
namespace Umbraco.Cms.Infrastructure.Migrations.Events
|
||||
{
|
||||
internal class DatabaseSchemaCreatedNotification : INotification
|
||||
internal class DatabaseSchemaCreatedNotification : StatefulNotification
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -146,7 +146,8 @@ namespace Umbraco.Cms.Infrastructure.Migrations.Install
|
||||
CreateTable(false, table, dataCreation);
|
||||
}
|
||||
|
||||
FireAfterCreation(new DatabaseSchemaCreatedNotification());
|
||||
DatabaseSchemaCreatedNotification createdNotification = new DatabaseSchemaCreatedNotification().WithStateFrom(creatingNotification);
|
||||
FireAfterCreation(createdNotification);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user