using FluentValidation; using Microsoft.Extensions.DependencyInjection; using SIGCM2.Application.Abstractions; using SIGCM2.Application.Auth.Login; using SIGCM2.Application.Auth.Logout; using SIGCM2.Application.Auth.Refresh; namespace SIGCM2.Application; public static class DependencyInjection { public static IServiceCollection AddApplication(this IServiceCollection services) { // Command handlers services.AddScoped, LoginCommandHandler>(); services.AddScoped, RefreshCommandHandler>(); services.AddScoped, LogoutCommandHandler>(); // FluentValidation validators (scans entire Application assembly) services.AddValidatorsFromAssemblyContaining(); return services; } }