A little renaming for consistency

This commit is contained in:
Kenn Jacobsen
2021-03-03 09:16:48 +01:00
parent a6b4115675
commit 60241f5f51
3 changed files with 9 additions and 9 deletions

View File

@@ -32,11 +32,11 @@ namespace Umbraco.Cms.Core.Compose
// add handlers for building content relations
builder
.AddNotificationHandler<CopiedNotification<IContent>, RelateOnCopyHandler>()
.AddNotificationHandler<MovedNotification<IContent>, RelateOnTrashHandler>()
.AddNotificationHandler<MovedToRecycleBinNotification<IContent>, RelateOnTrashHandler>()
.AddNotificationHandler<MovedNotification<IMedia>, RelateOnTrashHandler>()
.AddNotificationHandler<MovedToRecycleBinNotification<IMedia>, RelateOnTrashHandler>();
.AddNotificationHandler<CopiedNotification<IContent>, RelateOnCopyNotifcationHandler>()
.AddNotificationHandler<MovedNotification<IContent>, RelateOnTrashNotificationHandler>()
.AddNotificationHandler<MovedToRecycleBinNotification<IContent>, RelateOnTrashNotificationHandler>()
.AddNotificationHandler<MovedNotification<IMedia>, RelateOnTrashNotificationHandler>()
.AddNotificationHandler<MovedToRecycleBinNotification<IMedia>, RelateOnTrashNotificationHandler>();
// add notification handlers for property editors
builder

View File

@@ -4,12 +4,12 @@ using Umbraco.Cms.Infrastructure.Services.Notifications;
namespace Umbraco.Cms.Core.Events
{
public class RelateOnCopyHandler : INotificationHandler<CopiedNotification<IContent>>
public class RelateOnCopyNotifcationHandler : INotificationHandler<CopiedNotification<IContent>>
{
private readonly IRelationService _relationService;
private readonly IAuditService _auditService;
public RelateOnCopyHandler(IRelationService relationService, IAuditService auditService)
public RelateOnCopyNotifcationHandler(IRelationService relationService, IAuditService auditService)
{
_relationService = relationService;
_auditService = auditService;

View File

@@ -8,7 +8,7 @@ using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Events
{
// TODO: lots of duplicate code in this one, refactor
public sealed class RelateOnTrashHandler :
public sealed class RelateOnTrashNotificationHandler :
INotificationHandler<MovedNotification<IContent>>,
INotificationHandler<MovedToRecycleBinNotification<IContent>>,
INotificationHandler<MovedNotification<IMedia>>,
@@ -20,7 +20,7 @@ namespace Umbraco.Cms.Core.Events
private readonly IAuditService _auditService;
private readonly IScopeProvider _scopeProvider;
public RelateOnTrashHandler(
public RelateOnTrashNotificationHandler(
IRelationService relationService,
IEntityService entityService,
ILocalizedTextService textService,