Making NotificationEventBase classes internal to reduce leak

This commit is contained in:
rockstardev
2020-06-11 18:29:37 -05:00
parent b53cb50a91
commit 8876f1f992
2 changed files with 6 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ using Newtonsoft.Json;
namespace BTCPayServer.Events.Notifications
{
public class NewVersionNotification : NotificationEventBase
internal class NewVersionNotification : NotificationEventBase
{
public string Version { get; set; }

View File

@@ -5,9 +5,12 @@ using Newtonsoft.Json;
namespace BTCPayServer.Events.Notifications
{
public abstract class NotificationEventBase
// Make sure to keep all NotificationEventBase classes in same namespace
// because of dependent initialization and parsing to view models logic
// IndexViewModel.cs#32
internal abstract class NotificationEventBase
{
public virtual string NotificationType { get { return GetType().Name; } }
internal virtual string NotificationType { get { return GetType().Name; } }
public NotificationData ToData()
{