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

BusinessConfigurationExtension.cs 1.9KB

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