using FluentValidation; using Helpdesk.Application.Auth; using Helpdesk.Application.Catalogs; using Helpdesk.Application.Issues; using Helpdesk.Application.Notifications; using Helpdesk.Application.Proposals; using Helpdesk.Application.Statistics; using Helpdesk.Application.Users; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace Helpdesk.Application; public static class DependencyInjection { public static IServiceCollection AddApplication(this IServiceCollection services, IConfiguration configuration) { services.Configure(configuration.GetSection(RegistrationOptions.Section)); services.AddValidatorsFromAssembly(typeof(DependencyInjection).Assembly, includeInternalTypes: true); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); return services; } }