Migrated CacheRefresher events to IEventAggregator pattern.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Models.Membership;
|
||||
using Umbraco.Cms.Core.Persistence.Repositories;
|
||||
|
||||
@@ -10,16 +11,14 @@ namespace Umbraco.Cms.Core.Cache
|
||||
/// <remarks>
|
||||
/// This also needs to clear the user cache since IReadOnlyUserGroup's are attached to IUser objects
|
||||
/// </remarks>
|
||||
public sealed class UserGroupCacheRefresher : CacheRefresherBase<UserGroupCacheRefresher>
|
||||
public sealed class UserGroupCacheRefresher : CacheRefresherBase<UserGroupCacheRefresherNotification>
|
||||
{
|
||||
public UserGroupCacheRefresher(AppCaches appCaches)
|
||||
: base(appCaches)
|
||||
public UserGroupCacheRefresher(AppCaches appCaches, IEventAggregator eventAggregator)
|
||||
: base(appCaches, eventAggregator)
|
||||
{ }
|
||||
|
||||
#region Define
|
||||
|
||||
protected override UserGroupCacheRefresher This => this;
|
||||
|
||||
public static readonly Guid UniqueId = Guid.Parse("45178038-B232-4FE8-AA1A-F2B949C44762");
|
||||
|
||||
public override Guid RefresherUniqueId => UniqueId;
|
||||
|
||||
Reference in New Issue
Block a user