2023-06-26 14:02:04 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories;
|
2023-07-13 15:03:29 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.Commands;
|
2023-07-12 21:08:46 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.MessageQueue;
|
2023-08-22 17:24:21 +07:00
|
|
|
|
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
|
2023-06-26 14:02:04 +07:00
|
|
|
|
{
|
|
|
|
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
services.AddTransient<PrefixRepository>();
|
2023-06-29 21:04:49 +07:00
|
|
|
|
services.AddTransient<PlacementRepository>();
|
2023-07-13 09:01:47 +07:00
|
|
|
|
services.AddTransient<OrganizationEmployeeRepository>();
|
2023-07-12 21:08:46 +07:00
|
|
|
|
services.AddTransient<MessageQueueRepository>();
|
2023-07-28 15:04:26 +07:00
|
|
|
|
services.AddTransient<CommandRepository>();
|
2023-07-20 14:53:09 +07:00
|
|
|
|
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>();
|
2023-08-07 11:53:11 +07:00
|
|
|
|
services.AddTransient<UserProfileRepository>();
|
2023-08-08 15:05:53 +07:00
|
|
|
|
services.AddTransient<OrganizationCommonRepository>();
|
2023-08-09 20:28:56 +07:00
|
|
|
|
services.AddTransient<InboxRepository>();
|
|
|
|
|
|
services.AddTransient<NotificationRepository>();
|
2023-08-17 10:46:30 +07:00
|
|
|
|
services.AddTransient<RetirementRepository>();
|
2023-08-22 17:24:21 +07:00
|
|
|
|
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-06-05 20:22:51 +07:00
|
|
|
|
|
2023-06-26 14:02:04 +07:00
|
|
|
|
return services;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-06-05 20:22:51 +07:00
|
|
|
|
}
|