hrms-api-backend/BMA.EHR.Application/ApplicationServicesRegistration.cs

60 lines
2.5 KiB
C#
Raw Normal View History

using BMA.EHR.Application.Messaging;
using BMA.EHR.Application.Repositories;
using BMA.EHR.Application.Repositories.Commands;
using BMA.EHR.Application.Repositories.Leaves.TimeAttendants;
using BMA.EHR.Application.Repositories.MessageQueue;
using BMA.EHR.Application.Repositories.Reports;
2023-06-05 20:22:51 +07:00
using Microsoft.Extensions.DependencyInjection;
namespace BMA.EHR.Application
{
2023-06-25 18:36:02 +07:00
public static class ApplicationServicesRegistration
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
services.AddTransient<PrefixRepository>();
services.AddTransient<PlacementRepository>();
services.AddTransient<OrganizationEmployeeRepository>();
services.AddTransient<MessageQueueRepository>();
2023-07-28 15:04:26 +07:00
services.AddTransient<CommandRepository>();
services.AddTransient<CommandTypeRepository>();
services.AddTransient<CommandStatusRepository>();
2023-07-20 20:18:09 +07:00
services.AddTransient<InsigniaPeriodsRepository>();
2023-07-22 22:14:50 +07:00
services.AddTransient<RetirementRepository>();
services.AddTransient<UserProfileRepository>();
services.AddTransient<OrganizationCommonRepository>();
services.AddTransient<InboxRepository>();
services.AddTransient<NotificationRepository>();
services.AddTransient<RetirementRepository>();
services.AddTransient<RetireReportRepository>();
2023-09-04 16:02:20 +07:00
services.AddTransient<InsigniaReportRepository>();
2023-08-20 19:29:03 +07:00
services.AddTransient<CommandReportRepository>();
2023-09-06 12:03:26 +07:00
services.AddTransient<ProbationReportRepository>();
2023-09-26 15:09:01 +07:00
services.AddTransient<TransferReportRepository>();
services.AddTransient<EmailSenderService>();
2023-10-08 13:54:20 +07:00
services.AddTransient<CandidateReportRepository>();
2023-10-13 06:19:30 +07:00
services.AddTransient<MinIOExamService>();
2023-11-16 13:17:54 +07:00
//services.AddTransient<DutyTimeRepository>();
//services.AddTransient<UserTimeStampRepository>();
return services;
}
public static IServiceCollection AddLeaveApplication(this IServiceCollection services)
{
services.AddTransient<DutyTimeRepository>();
services.AddTransient<UserTimeStampRepository>();
return services;
}
public static IServiceCollection AddDisciplineApplication(this IServiceCollection services)
{
// services.AddTransient<DutyTimeRepository>();
return services;
}
}
2023-06-05 20:22:51 +07:00
}