mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Moving Notification to dedicated Service namespace
This commit is contained in:
@@ -5,11 +5,11 @@ using System.Security.Claims;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Events.Notifications;
|
|
||||||
using BTCPayServer.Filters;
|
using BTCPayServer.Filters;
|
||||||
using BTCPayServer.HostedServices;
|
using BTCPayServer.HostedServices;
|
||||||
using BTCPayServer.Models.NotificationViewModels;
|
using BTCPayServer.Models.NotificationViewModels;
|
||||||
using BTCPayServer.Security;
|
using BTCPayServer.Security;
|
||||||
|
using BTCPayServer.Services.Notifications;
|
||||||
using Google;
|
using Google;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
using System;
|
using BTCPayServer.Services.Notifications.Blobs;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BTCPayServer.Events.Notifications
|
namespace BTCPayServer.Events
|
||||||
{
|
{
|
||||||
internal class NotificationEvent
|
internal class NotificationEvent
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@ using System.Security.Claims;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Events.Notifications;
|
using BTCPayServer.Events;
|
||||||
using BTCPayServer.Models.NotificationViewModels;
|
using BTCPayServer.Models.NotificationViewModels;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.Extensions.Caching.Memory;
|
using Microsoft.Extensions.Caching.Memory;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ using BTCPayServer.Security.Bitpay;
|
|||||||
using Serilog;
|
using Serilog;
|
||||||
using BTCPayServer.Security.GreenField;
|
using BTCPayServer.Security.GreenField;
|
||||||
using BTCPayServer.Services.Labels;
|
using BTCPayServer.Services.Labels;
|
||||||
using BTCPayServer.Events.Notifications;
|
using BTCPayServer.Services.Notifications;
|
||||||
|
|
||||||
namespace BTCPayServer.Hosting
|
namespace BTCPayServer.Hosting
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Events;
|
using BTCPayServer.Events;
|
||||||
using BTCPayServer.Events.Notifications;
|
using BTCPayServer.Services.Notifications.Blobs;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace BTCPayServer.Models.NotificationViewModels
|
namespace BTCPayServer.Models.NotificationViewModels
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using BTCPayServer.Models.NotificationViewModels;
|
using BTCPayServer.Models.NotificationViewModels;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace BTCPayServer.Events.Notifications
|
namespace BTCPayServer.Services.Notifications.Blobs
|
||||||
{
|
{
|
||||||
internal class NewVersionNotification : NotificationBase
|
internal class NewVersionNotification : NotificationBase
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using BTCPayServer.Data;
|
|||||||
using BTCPayServer.Models.NotificationViewModels;
|
using BTCPayServer.Models.NotificationViewModels;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace BTCPayServer.Events.Notifications
|
namespace BTCPayServer.Services.Notifications.Blobs
|
||||||
{
|
{
|
||||||
// Make sure to keep all NotificationEventBase classes in same namespace
|
// Make sure to keep all NotificationEventBase classes in same namespace
|
||||||
// because of dependent initialization and parsing to view models logic
|
// because of dependent initialization and parsing to view models logic
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
|
using BTCPayServer.Events;
|
||||||
|
using BTCPayServer.Services.Notifications.Blobs;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
|
|
||||||
namespace BTCPayServer.Events.Notifications
|
namespace BTCPayServer.Services.Notifications
|
||||||
{
|
{
|
||||||
public class NotificationSender
|
public class NotificationSender
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user