LANCommander/LANCommander.UI/Extensions/IServiceCollectionExtensions.cs
2026-05-28 22:26:24 -05:00

17 lines
No EOL
489 B
C#

using LANCommander.UI.Providers;
using LANCommander.UI.Services;
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>();
services.AddScoped<UploadTracker>();
return services;
}
}