using MediatR; using Microsoft.Extensions.DependencyInjection; using MTWorkHR.Application.Identity; using MTWorkHR.Application.Services; using MTWorkHR.Application.Services.Interfaces; using MTWorkHR.Core.Entities; using MTWorkHR.Core.Global; using MTWorkHR.Identity.Services; using System.Reflection; namespace MTWorkHR.Application { public static class ApplicationServiceRegistration { public static IServiceCollection AddApplicationServices(this IServiceCollection services, AppSettingsConfiguration config) { services.AddSingleton(config); services.AddAutoMapper(Assembly.GetExecutingAssembly()); services.AddMediatR(Assembly.GetExecutingAssembly()); services.AddScoped(); services.AddScoped(); // services.AddTransient(); 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, LogService>(); return services; } } }