Fix typo, adds [CannotSuppressNotification]

This commit is contained in:
Shannon
2021-07-12 11:54:38 -06:00
parent cd20701929
commit dcae692407
9 changed files with 40 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
using System;
namespace Umbraco.Cms.Core.Notifications
{
[AttributeUsage(AttributeTargets.Class)]
internal sealed class CannotSuppressNotificationAttribute : Attribute
{
}
}

View File

@@ -5,7 +5,9 @@ using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications
{
[Obsolete("This is only used for the internal cache and will change, use saved notifications instead")]
[CannotSuppressNotification]
[EditorBrowsable(EditorBrowsableState.Never)]
public class ContentRefreshNotification : EntityRefreshNotification<IContent>
{

View File

@@ -5,6 +5,7 @@ using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications
{
[CannotSuppressNotification]
[Obsolete("This is only used for the internal cache and will change, use tree change notifications instead")]
[EditorBrowsable(EditorBrowsableState.Never)]
public class MediaRefreshNotification : EntityRefreshNotification<IMedia>

View File

@@ -5,6 +5,7 @@ using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications
{
[CannotSuppressNotification]
[Obsolete("This is only used for the internal cache and will change, use tree change notifications instead")]
[EditorBrowsable(EditorBrowsableState.Never)]
public class MemberRefreshNotification : EntityRefreshNotification<IMember>

View File

@@ -5,6 +5,7 @@ using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications
{
[CannotSuppressNotification]
[Obsolete("This is only used for the internal cache and will change, use tree change notifications instead")]
[EditorBrowsable(EditorBrowsableState.Never)]
public class ScopedEntityRemoveNotification : ObjectNotification<IContentBase>