Sorted services

This commit is contained in:
Marcel Baumgartner 2023-05-05 04:49:45 +02:00
parent 0a9e9589fc
commit d26c98f131
18 changed files with 27 additions and 18 deletions

View file

@ -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;

View file

@ -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
{

View file

@ -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
{

View file

@ -2,6 +2,7 @@
using Logging.Net;
using Microsoft.Extensions.Primitives;
using Moonlight.App.Helpers;
using Moonlight.App.Services.Files;
namespace Moonlight.App.Services;

View file

@ -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
{

View file

@ -1,6 +1,6 @@
using Moonlight.App.Database.Entities;
namespace Moonlight.App.Services;
namespace Moonlight.App.Services.Files;
public class ResourceService
{

View file

@ -1,7 +1,7 @@
using Logging.Net;
using Moonlight.App.Helpers;
namespace Moonlight.App.Services;
namespace Moonlight.App.Services.Files;
public class StorageService
{

View file

@ -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
{

View file

@ -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
{

View file

@ -1,7 +1,7 @@
using System.Net;
using Logging.Net;
namespace Moonlight.App.Services;
namespace Moonlight.App.Services.Mail;
public class TrashMailDetectorService
{

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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