Migrated CacheRefresher events to IEventAggregator pattern.

This commit is contained in:
Bjarke Berg
2021-03-12 21:48:24 +01:00
parent 57386c8fbc
commit 06a202e30e
32 changed files with 390 additions and 297 deletions

View File

@@ -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;