A little renaming for consistency
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
@@ -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,
|
||||
Reference in New Issue
Block a user