Sorted services
This commit is contained in:
parent
0a9e9589fc
commit
d26c98f131
18 changed files with 27 additions and 18 deletions
|
@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc;
|
|||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Models.Misc;
|
||||
using Moonlight.App.Services;
|
||||
using Moonlight.App.Services.Files;
|
||||
using Moonlight.App.Services.LogServices;
|
||||
|
||||
namespace Moonlight.App.Http.Controllers.Api.Moonlight;
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
using System.Diagnostics;
|
||||
using Logging.Net;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using MineStatLib;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Repositories;
|
||||
using Moonlight.App.Repositories.Servers;
|
||||
using Logging.Net;
|
||||
using Moonlight.App.ApiClients.Daemon.Resources;
|
||||
using Moonlight.App.ApiClients.Wings;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Events;
|
||||
using Moonlight.App.Repositories;
|
||||
using Moonlight.App.Repositories.Servers;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Background;
|
||||
|
||||
public class CleanupService
|
||||
{
|
|
@ -3,8 +3,9 @@ using Discord.Webhook;
|
|||
using Logging.Net;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Events;
|
||||
using Moonlight.App.Services.Files;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Background;
|
||||
|
||||
public class DiscordNotificationService
|
||||
{
|
|
@ -2,6 +2,7 @@
|
|||
using Logging.Net;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Services.Files;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using Logging.Net;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Helpers;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Files;
|
||||
|
||||
public class BucketService
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Moonlight.App.Database.Entities;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Files;
|
||||
|
||||
public class ResourceService
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using Logging.Net;
|
||||
using Moonlight.App.Helpers;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Files;
|
||||
|
||||
public class StorageService
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Models.Misc;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.LogServices;
|
||||
|
||||
public class LogService
|
||||
{
|
|
@ -1,13 +1,11 @@
|
|||
using System.Net;
|
||||
using System.Net.Mail;
|
||||
using Logging.Net;
|
||||
using Logging.Net;
|
||||
using MimeKit;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Exceptions;
|
||||
using Moonlight.App.Helpers;
|
||||
using SmtpClient = MailKit.Net.Smtp.SmtpClient;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Mail;
|
||||
|
||||
public class MailService
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Net;
|
||||
using Logging.Net;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
namespace Moonlight.App.Services.Mail;
|
||||
|
||||
public class TrashMailDetectorService
|
||||
{
|
|
@ -1,6 +1,7 @@
|
|||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Events;
|
||||
using Moonlight.App.Services.Files;
|
||||
using Moonlight.App.Services.Sessions;
|
||||
|
||||
namespace Moonlight.App.Services.SupportChat;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Events;
|
||||
using Moonlight.App.Services.Files;
|
||||
using Moonlight.App.Services.Sessions;
|
||||
|
||||
namespace Moonlight.App.Services.SupportChat;
|
||||
|
|
|
@ -6,6 +6,7 @@ using Moonlight.App.Helpers;
|
|||
using Moonlight.App.Models.Misc;
|
||||
using Moonlight.App.Repositories;
|
||||
using Moonlight.App.Services.LogServices;
|
||||
using Moonlight.App.Services.Mail;
|
||||
using Moonlight.App.Services.Sessions;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
|
|
|
@ -15,9 +15,12 @@ using Moonlight.App.Repositories.Domains;
|
|||
using Moonlight.App.Repositories.LogEntries;
|
||||
using Moonlight.App.Repositories.Servers;
|
||||
using Moonlight.App.Services;
|
||||
using Moonlight.App.Services.Background;
|
||||
using Moonlight.App.Services.DiscordBot;
|
||||
using Moonlight.App.Services.Files;
|
||||
using Moonlight.App.Services.Interop;
|
||||
using Moonlight.App.Services.LogServices;
|
||||
using Moonlight.App.Services.Mail;
|
||||
using Moonlight.App.Services.Notifications;
|
||||
using Moonlight.App.Services.OAuth2;
|
||||
using Moonlight.App.Services.Sessions;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
@using Moonlight.App.Models.Misc
|
||||
@using Moonlight.App.Services.LogServices
|
||||
@using Moonlight.App.Events
|
||||
@using Moonlight.App.Services.Background
|
||||
|
||||
@inject CleanupService CleanupService
|
||||
@inject AuditLogService AuditLogService
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.SupportChat
|
||||
@using System.Text.RegularExpressions
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject SupportChatAdminService AdminService
|
||||
@inject UserRepository UserRepository
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
@using BlazorTable
|
||||
@using Moonlight.App.Models.Misc
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.LogServices
|
||||
@using Moonlight.Shared.Components.Navigations
|
||||
|
||||
@inject LogService LogService
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
@using Moonlight.App.Services.SupportChat
|
||||
@using Logging.Net
|
||||
@using System.Text.RegularExpressions
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ResourceService ResourceService
|
||||
@inject SupportChatClientService ClientService
|
||||
|
|
Loading…
Reference in a new issue