2025-07-27 17:51:50 -05:00
|
|
|
using LANCommander.Server.ImportExport.Extensions;
|
2025-03-15 21:00:00 -05:00
|
|
|
using LANCommander.Server.Providers;
|
2025-03-11 21:21:16 -05:00
|
|
|
using LANCommander.Server.Services;
|
2025-03-16 14:35:53 -05:00
|
|
|
using LANCommander.Server.Services.Abstractions;
|
2025-03-15 21:00:00 -05:00
|
|
|
using LANCommander.Server.Services.Extensions;
|
2025-03-11 21:21:16 -05:00
|
|
|
using LANCommander.Server.Services.Models;
|
2025-03-17 02:02:17 -05:00
|
|
|
using LANCommander.UI.Extensions;
|
2025-03-11 21:21:16 -05:00
|
|
|
using Serilog;
|
|
|
|
|
|
|
|
|
|
namespace LANCommander.Server.Startup;
|
|
|
|
|
|
|
|
|
|
public static class Services
|
|
|
|
|
{
|
|
|
|
|
public static WebApplicationBuilder AddLANCommanderServices(this WebApplicationBuilder builder, Settings settings)
|
|
|
|
|
{
|
|
|
|
|
Log.Debug("Registering services");
|
2025-03-15 21:00:00 -05:00
|
|
|
|
|
|
|
|
builder.Services.AddLANCommanderServer(settings);
|
2025-07-27 17:51:50 -05:00
|
|
|
builder.Services.AddLANCommanderImportExport();
|
2025-03-17 02:02:17 -05:00
|
|
|
builder.Services.AddLANCommanderUI();
|
2025-03-11 21:21:16 -05:00
|
|
|
|
2025-03-15 21:00:00 -05:00
|
|
|
builder.Services.AddSingleton<IVersionProvider, VersionProvider>();
|
2025-03-11 21:21:16 -05:00
|
|
|
|
|
|
|
|
builder.Services.AddAntDesign();
|
|
|
|
|
builder.Services.AddHttpClient();
|
|
|
|
|
builder.Services.AddHttpContextAccessor();
|
|
|
|
|
|
|
|
|
|
return builder;
|
|
|
|
|
}
|
|
|
|
|
}
|