| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- namespace Diligent.WebAPI.Host.Extensions
- {
- public static class BusinessConfigurationExtension
- {
- /// <summary>
- /// Services configuration
- /// </summary>
- public static void ConfigureBusiness(this WebApplicationBuilder builder)
- {
- IServiceCollection services = builder.Services;
- services.AddAutoMapper(typeof(CompanyMappingProfile));
- services.AddAutoMapper(typeof(WebhookMappingProfile));
- services.AddAutoMapper(typeof(InsurerMappingProfile));
- services.AddAutoMapper(typeof(ApplicantMappingProfile));
- services.AddAutoMapper(typeof(CommentMappingProfile));
- services.AddAutoMapper(typeof(SelectionProcessMappingProfile));
- services.AddAutoMapper(typeof(SelectionLevelMappingProfile));
-
- services.AddScoped<IInsurersService, InsurersService>();
- services.AddScoped<IEmailer, Emailer>();
- services.AddScoped<IHttpClientService, HttpClientService>();
- services.AddScoped<IInsuranceCompaniesService, InsuranceCompaniesService>();
- services.AddScoped<IInsurancePoliciesService, InsurancePoliciesService>();
- services.AddScoped<ISelectionProcessService, SelectionProcessService>();
- services.AddScoped<ISelectionLevelService, SelectionLevelService>();
- services.AddScoped<IWebhookSubscriptionService, WebhookSubscriptionService>();
- services.AddScoped<IWebhookDefinitionService, WebhookDefinitionService>();
- services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
- services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
- services.AddScoped<IApplicantService, ApplicantService>();
- services.AddScoped<IAuthenticationService, AuthenticationService>();
- services.AddScoped<IAdService, AdService>();
- services.AddScoped<ITechnologyService, TechnologyService>();
- services.AddScoped<ICommentService, CommentService>();
- services.AddScoped<IPatternService, PatternService>();
- services.AddScoped<IScheduleService, ScheduleService>();
- services.AddScoped<IImportService, ImportService>();
- services.AddScoped<ISaveImportedDataService, SaveImportedDataService>();
- services.AddScoped<IScreeningTestService, ScreeningTestService>();
- services.AddScoped<IFileService, FileService>();
- }
-
- /// <summary>
- /// App configuration
- /// </summary>
- public static void ConfigureBusiness(this WebApplication app)
- {
- //
- }
- }
- }
|