Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334
  1. namespace Diligent.WebAPI.Host.Extensions
  2. {
  3. public static class BusinessConfigurationExtension
  4. {
  5. /// <summary>
  6. /// Services configuration
  7. /// </summary>
  8. public static void ConfigureBusiness(this WebApplicationBuilder builder)
  9. {
  10. IServiceCollection services = builder.Services;
  11. services.AddAutoMapper(typeof(CompanyMappingProfile));
  12. services.AddAutoMapper(typeof(WebhookMappingProfile));
  13. services.AddAutoMapper(typeof(InsurerMappingProfile));
  14. services.AddAutoMapper(typeof(ApplicantMappingProfile));
  15. services.AddScoped<IInsurersService, InsurersService>();
  16. services.AddScoped<IInsuranceCompaniesService, InsuranceCompaniesService>();
  17. services.AddScoped<IInsurancePoliciesService, InsurancePoliciesService>();
  18. services.AddScoped<IWebhookSubscriptionService, WebhookSubscriptionService>();
  19. services.AddScoped<IWebhookDefinitionService, WebhookDefinitionService>();
  20. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  21. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  22. services.AddScoped<IApplicantService, ApplicantService>();
  23. }
  24. /// <summary>
  25. /// App configuration
  26. /// </summary>
  27. public static void ConfigureBusiness(this WebApplication app)
  28. {
  29. //
  30. }
  31. }
  32. }