Moving Notification to dedicated Service namespace

This commit is contained in:
rockstardev
2020-06-14 23:47:11 -05:00
parent 342f63a625
commit 0dab96f0a6
8 changed files with 11 additions and 13 deletions

View File

@@ -5,11 +5,11 @@ using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Events.Notifications;
using BTCPayServer.Filters;
using BTCPayServer.HostedServices;
using BTCPayServer.Models.NotificationViewModels;
using BTCPayServer.Security;
using BTCPayServer.Services.Notifications;
using Google;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;

View File

@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BTCPayServer.Services.Notifications.Blobs;
namespace BTCPayServer.Events.Notifications
namespace BTCPayServer.Events
{
internal class NotificationEvent
{

View File

@@ -5,7 +5,7 @@ using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Events.Notifications;
using BTCPayServer.Events;
using BTCPayServer.Models.NotificationViewModels;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Caching.Memory;

View File

@@ -46,7 +46,7 @@ using BTCPayServer.Security.Bitpay;
using Serilog;
using BTCPayServer.Security.GreenField;
using BTCPayServer.Services.Labels;
using BTCPayServer.Events.Notifications;
using BTCPayServer.Services.Notifications;
namespace BTCPayServer.Hosting
{

View File

@@ -6,7 +6,7 @@ using System.Text;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Events;
using BTCPayServer.Events.Notifications;
using BTCPayServer.Services.Notifications.Blobs;
using Newtonsoft.Json;
namespace BTCPayServer.Models.NotificationViewModels

View File

@@ -2,7 +2,7 @@
using BTCPayServer.Models.NotificationViewModels;
using Newtonsoft.Json;
namespace BTCPayServer.Events.Notifications
namespace BTCPayServer.Services.Notifications.Blobs
{
internal class NewVersionNotification : NotificationBase
{

View File

@@ -3,7 +3,7 @@ using BTCPayServer.Data;
using BTCPayServer.Models.NotificationViewModels;
using Newtonsoft.Json;
namespace BTCPayServer.Events.Notifications
namespace BTCPayServer.Services.Notifications.Blobs
{
// Make sure to keep all NotificationEventBase classes in same namespace
// because of dependent initialization and parsing to view models logic

View File

@@ -1,9 +1,11 @@
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Events;
using BTCPayServer.Services.Notifications.Blobs;
using Microsoft.AspNetCore.Identity;
namespace BTCPayServer.Events.Notifications
namespace BTCPayServer.Services.Notifications
{
public class NotificationSender
{