using System.Reflection; using Application.Interfaces; using Application.Repositories; using Application.Services; using Microsoft.Extensions.DependencyInjection; using Utilities.Interfaces; using Utilities.Services; namespace Application; public static class ApplicationDependencyInjection { public static IServiceCollection AddApplication(this IServiceCollection services) { services.AddAutoMapper(Assembly.GetExecutingAssembly()); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddTransient(); services.AddTransient(); services.AddTransient(); return services; } }