feat(udt-011): register TimeProvider.System in AddApplication DI

This commit is contained in:
2026-04-18 09:44:21 -03:00
parent 4e70b0f847
commit 54d2340bb9
2 changed files with 33 additions and 0 deletions

View File

@@ -67,6 +67,9 @@ public static class DependencyInjection
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
// UDT-011: TimeProvider singleton — available to all handlers for Cat2 date computation
services.AddSingleton(TimeProvider.System);
// Command handlers
services.AddScoped<ICommandHandler<LoginCommand, LoginResponseDto>, LoginCommandHandler>();
services.AddScoped<ICommandHandler<RefreshCommand, RefreshResponseDto>, RefreshCommandHandler>();