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

76 lines
3.3 KiB
C#
Raw Normal View History

using BMA.EHR.Application.Messaging;
using BMA.EHR.Application.Repositories;
using BMA.EHR.Application.Repositories.Commands;
2023-11-28 12:28:20 +07:00
using BMA.EHR.Application.Repositories.Leaves.LeaveRequests;
using BMA.EHR.Application.Repositories.Leaves.TimeAttendants;
using BMA.EHR.Application.Repositories.MessageQueue;
2023-11-29 17:28:15 +07:00
using BMA.EHR.Application.Repositories.MetaData;
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>();
2025-05-28 15:19:02 +07:00
services.AddTransient<RetirementEmployeeRepository>();
services.AddTransient<UserProfileRepository>();
services.AddTransient<OrganizationCommonRepository>();
services.AddTransient<InboxRepository>();
services.AddTransient<NotificationRepository>();
2025-01-29 20:25:19 +07:00
//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>();
2024-08-15 10:03:32 +07:00
services.AddTransient<PermissionRepository>();
2023-11-29 17:28:15 +07:00
services.AddTransient<HolidayRepository>();
2023-11-16 13:17:54 +07:00
2023-12-12 14:17:00 +07:00
//services.AddTransient<UserDutyTimeRepository>();
2023-11-16 13:17:54 +07:00
return services;
}
public static IServiceCollection AddLeaveApplication(this IServiceCollection services)
{
services.AddTransient<DutyTimeRepository>();
services.AddTransient<UserTimeStampRepository>();
2023-11-23 15:48:09 +07:00
services.AddTransient<ProcessUserTimeStampRepository>();
services.AddTransient<UserDutyTimeRepository>();
services.AddTransient<AdditionalCheckRequestRepository>();
services.AddTransient<UserCalendarRepository>();
services.AddTransient<CheckInJobStatusRepository>();
2023-11-28 12:28:20 +07:00
services.AddTransient<LeaveTypeRepository>();
2023-11-29 17:28:15 +07:00
services.AddTransient<LeaveRequestRepository>();
2025-04-23 11:25:12 +07:00
services.AddTransient<LeaveBeginningRepository>();
2023-11-28 12:28:20 +07:00
2023-12-08 17:50:46 +07:00
services.AddTransient<MinIOLeaveService>();
return services;
}
public static IServiceCollection AddDisciplineApplication(this IServiceCollection services)
{
2023-11-23 08:48:21 +07:00
services.AddTransient<MinIODisciplineService>();
services.AddTransient<NotificationRepository>();
return services;
}
}
2023-06-05 20:22:51 +07:00
}