Moved notification handlers out of the Compose namespace

This commit is contained in:
Kenn Jacobsen
2021-03-03 09:15:52 +01:00
parent f8db15dcc7
commit a6b4115675
4 changed files with 4 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.PropertyEditors;
using Umbraco.Cms.Core.Routing;

View File

@@ -1,11 +1,9 @@
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Infrastructure.Services.Notifications;
namespace Umbraco.Cms.Core.Compose
namespace Umbraco.Cms.Core.Events
{
// TODO: this should probably be moved to another namespace
public class RelateOnCopyHandler : INotificationHandler<CopiedNotification<IContent>>
{
private readonly IRelationService _relationService;

View File

@@ -1,14 +1,12 @@
using System.Linq;
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Scoping;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Infrastructure.Services.Notifications;
using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Compose
namespace Umbraco.Cms.Core.Events
{
// TODO: this should probably be moved to another namespace
// TODO: lots of duplicate code in this one, refactor
public sealed class RelateOnTrashHandler :
INotificationHandler<MovedNotification<IContent>>,

View File

@@ -9,7 +9,6 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Umbraco.Cms.Core.Actions;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Hosting;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Models.Entities;
@@ -19,9 +18,8 @@ using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Infrastructure.Services.Notifications;
using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Compose
namespace Umbraco.Cms.Core.Events
{
// TODO: this should probably be moved to another namespace
public sealed class UserNotificationsHandler :
INotificationHandler<SavedNotification<IContent>>,
INotificationHandler<SortedNotification<IContent>>,