using MediatR; using Microsoft.Extensions.DependencyInjection; using MTWorkHR.Application.Identity; using MTWorkHR.Application.Services; 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.AddTransient(); services.AddTransient(); return services; } } }