Use explicitly typed notifications instead of generic ones

This commit is contained in:
Kenn Jacobsen
2021-03-16 09:21:27 +01:00
parent 0db4e30fcf
commit ef178c5606
27 changed files with 415 additions and 77 deletions

View File

@@ -31,7 +31,7 @@ namespace Umbraco.Cms.Core.Events
INotificationHandler<ContentSentToPublishNotification>,
INotificationHandler<ContentUnpublishedNotification>,
INotificationHandler<AssignedUserGroupPermissionsNotification>,
INotificationHandler<SavedNotification<PublicAccessEntry>>
INotificationHandler<PublicAccessEntrySavedNotification>
{
private readonly Notifier _notifier;
private readonly ActionCollection _actions;
@@ -225,7 +225,7 @@ namespace Umbraco.Cms.Core.Events
}
public void Handle(SavedNotification<PublicAccessEntry> notification)
public void Handle(PublicAccessEntrySavedNotification notification)
{
var entities = _contentService.GetByIds(notification.SavedEntities.Select(e => e.ProtectedNodeId)).ToArray();
if (entities.Any() == false)