V9: Place notifications in the same namespace (#10231)
* Gather all notifications in Umbraco.Cms.Core.Notifications * Rename notifications to match convention * Move and rename missed notifications * Move the three remaining public notification into Umbraco.Cms.Core.Notifications
This commit is contained in:
@@ -6,12 +6,13 @@ using Microsoft.AspNetCore.Http.Extensions;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Umbraco.Cms.Core.Configuration.Models;
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Notifications;
|
||||
using Umbraco.Cms.Core.Web;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
namespace Umbraco.Cms.Web.Common.AspNetCore
|
||||
{
|
||||
public class AspNetCoreRequestAccessor : IRequestAccessor, INotificationHandler<UmbracoRequestBegin>
|
||||
public class AspNetCoreRequestAccessor : IRequestAccessor, INotificationHandler<UmbracoRequestBeginNotification>
|
||||
{
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
private readonly WebRoutingSettings _webRoutingSettings;
|
||||
@@ -89,7 +90,7 @@ namespace Umbraco.Cms.Web.Common.AspNetCore
|
||||
/// TODO: This doesn't belong here, the GetApplicationUrl doesn't belong to IRequestAccessor
|
||||
/// this should be part of middleware not a lazy init based on an INotification
|
||||
/// </summary>
|
||||
public void Handle(UmbracoRequestBegin notification)
|
||||
public void Handle(UmbracoRequestBeginNotification notification)
|
||||
=> LazyInitializer.EnsureInitialized(ref _hasAppUrl, ref _isInit, ref _initLocker, () =>
|
||||
{
|
||||
GetApplicationUrl();
|
||||
|
||||
Reference in New Issue
Block a user