cleanup service

This commit is contained in:
Daniel Balk
2023-04-02 22:51:27 +02:00
parent 146678cebf
commit dfda444956
8 changed files with 1711 additions and 6 deletions

View File

@@ -97,6 +97,8 @@ namespace Moonlight
builder.Services.AddScoped<GoogleOAuth2Service>();
builder.Services.AddScoped<DiscordOAuth2Service>();
builder.Services.AddSingleton<CleanupService>();
// Loggers
builder.Services.AddScoped<SecurityLogService>();
builder.Services.AddScoped<AuditLogService>();
@@ -153,6 +155,9 @@ namespace Moonlight
// Support service
var supportServerService = app.Services.GetRequiredService<SupportServerService>();
// cleanup service
_ = app.Services.GetRequiredService<CleanupService>();
// Discord bot service
//var discordBotService = app.Services.GetRequiredService<DiscordBotService>();