LANCommander/LANCommander.UI/Extensions/IServiceCollectionExtensions.cs

17 lines
489 B
C#
Raw Permalink Normal View History

2025-03-17 02:02:17 -05:00
using LANCommander.UI.Providers;
2026-05-28 22:24:46 -05:00
using LANCommander.UI.Services;
2025-03-17 02:02:17 -05:00
using Microsoft.Extensions.DependencyInjection;
namespace LANCommander.UI.Extensions;
public static class IServiceCollectionExtensions
{
public static IServiceCollection AddLANCommanderUI(this IServiceCollection services)
{
services.AddSingleton<TimeProvider, LocalTimeProvider>();
services.AddScoped<ScriptProvider>();
2026-05-28 22:24:46 -05:00
services.AddScoped<UploadTracker>();
2025-03-17 02:02:17 -05:00
return services;
}
}