您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

BusinessConfigurationExtension.cs 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System.Diagnostics.CodeAnalysis;
  2. namespace Diligent.WebAPI.Host.Extensions
  3. {
  4. [ExcludeFromCodeCoverage]
  5. public static class BusinessConfigurationExtension
  6. {
  7. /// <summary>
  8. /// Services configuration
  9. /// </summary>
  10. public static void ConfigureBusiness(this WebApplicationBuilder builder)
  11. {
  12. IServiceCollection services = builder.Services;
  13. services.AddAutoMapper(typeof(CompanyMappingProfile));
  14. services.AddAutoMapper(typeof(WebhookMappingProfile));
  15. services.AddAutoMapper(typeof(InsurerMappingProfile));
  16. services.AddAutoMapper(typeof(ApplicantMappingProfile));
  17. services.AddAutoMapper(typeof(CommentMappingProfile));
  18. services.AddAutoMapper(typeof(SelectionProcessMappingProfile));
  19. services.AddAutoMapper(typeof(SelectionLevelMappingProfile));
  20. services.AddScoped<IInsurersService, InsurersService>();
  21. services.AddScoped<IEmailer, Emailer>();
  22. services.AddScoped<IHttpClientService, HttpClientService>();
  23. services.AddScoped<IInsuranceCompaniesService, InsuranceCompaniesService>();
  24. services.AddScoped<IInsurancePoliciesService, InsurancePoliciesService>();
  25. services.AddScoped<ISelectionProcessService, SelectionProcessService>();
  26. services.AddScoped<ISelectionLevelService, SelectionLevelService>();
  27. services.AddScoped<IWebhookSubscriptionService, WebhookSubscriptionService>();
  28. services.AddScoped<IWebhookDefinitionService, WebhookDefinitionService>();
  29. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  30. services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
  31. services.AddScoped<IApplicantService, ApplicantService>();
  32. services.AddScoped<IAuthenticationService, AuthenticationService>();
  33. services.AddScoped<IAdService, AdService>();
  34. services.AddScoped<ITechnologyService, TechnologyService>();
  35. services.AddScoped<ICommentService, CommentService>();
  36. services.AddScoped<IPatternService, PatternService>();
  37. services.AddScoped<IScheduleService, ScheduleService>();
  38. services.AddScoped<IImportService, ImportService>();
  39. services.AddScoped<ISaveImportedDataService, SaveImportedDataService>();
  40. services.AddScoped<IScreeningTestService, ScreeningTestService>();
  41. services.AddScoped<IFileService, FileService>();
  42. services.AddScoped<IFileEntityService, FileEntityService>();
  43. services.AddScoped<ITagService, TagService>();
  44. services.AddScoped<ICategoryService, CategoryService>();
  45. services.AddScoped<IDocumentService, DocumentService>();
  46. }
  47. /// <summary>
  48. /// App configuration
  49. /// </summary>
  50. public static void ConfigureBusiness(this WebApplication app)
  51. {
  52. //
  53. }
  54. }
  55. }