mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Making NotificationEventBase classes internal to reduce leak
This commit is contained in:
@@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Events.Notifications
|
||||
{
|
||||
public class NewVersionNotification : NotificationEventBase
|
||||
internal class NewVersionNotification : NotificationEventBase
|
||||
{
|
||||
public string Version { get; set; }
|
||||
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user