statistics service

This commit is contained in:
Daniel Balk
2023-04-06 20:05:44 +02:00
parent febab426b3
commit a7ae2bf7ba
8 changed files with 1058 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ using Moonlight.App.Services.LogServices;
using Moonlight.App.Services.Notifications;
using Moonlight.App.Services.OAuth2;
using Moonlight.App.Services.Sessions;
using Moonlight.App.Services.Statistics;
using Moonlight.App.Services.Support;
namespace Moonlight
@@ -64,6 +65,8 @@ namespace Moonlight
builder.Services.AddScoped<WebsiteRepository>();
builder.Services.AddScoped<LoadingMessageRepository>();
builder.Services.AddScoped<StatisticsRepository>();
builder.Services.AddScoped<AuditLogEntryRepository>();
builder.Services.AddScoped<ErrorLogEntryRepository>();
builder.Services.AddScoped<SecurityLogEntryRepository>();
@@ -128,6 +131,7 @@ namespace Moonlight
// Background services
builder.Services.AddSingleton<DiscordBotService>();
builder.Services.AddSingleton<StatisticsCaptureService>();
// Third party services
builder.Services.AddBlazorTable();
@@ -160,6 +164,7 @@ namespace Moonlight
// AutoStart services
_ = app.Services.GetRequiredService<CleanupService>();
_ = app.Services.GetRequiredService<DiscordBotService>();
_ = app.Services.GetRequiredService<StatisticsCaptureService>();
// Discord bot service
//var discordBotService = app.Services.GetRequiredService<DiscordBotService>();