Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

BusinessConfigurationExtension.cs 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839
  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<IEmailer, Emailer>();
  17. services.AddScoped<IHttpClientService, HttpClientService>();
  18. services.AddScoped<IInsuranceCompaniesService, InsuranceCompaniesService>();
  19. services.AddScoped<IInsurancePoliciesService, InsurancePoliciesService>();
  20. services.AddScoped<IWebhookSubscriptionService, WebhookSubscriptionService>();
  21. services.AddScoped<IWebhookDefinitionService, WebhookDefinitionService>();
  22. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  23. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  24. services.AddScoped<IApplicantService, ApplicantService>();
  25. services.AddScoped<IAuthenticationService, AuthenticationService>();
  26. services.AddScoped<IAdService, AdService>();
  27. services.AddScoped<ITechnologyService, TechnologyService>();
  28. }
  29. /// <summary>
  30. /// App configuration
  31. /// </summary>
  32. public static void ConfigureBusiness(this WebApplication app)
  33. {
  34. //
  35. }
  36. }
  37. }