| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Diagnostics.CodeAnalysis;
-
- namespace Diligent.WebAPI.Host.Extensions
- {
- [ExcludeFromCodeCoverage]
- public static class BusinessConfigurationExtension
- {
- /// <summary>
- /// Services configuration
- /// </summary>
- public static void ConfigureBusiness(this WebApplicationBuilder builder)
- {
- IServiceCollection services = builder.Services;
- services.AddAutoMapper(typeof(WebhookMappingProfile));
- services.AddScoped<IEmailer, Emailer>();
- services.AddScoped<IHttpClientService, HttpClientService>();
- services.AddScoped<IWebhookSubscriptionService, WebhookSubscriptionService>();
- services.AddScoped<IWebhookDefinitionService, WebhookDefinitionService>();
- services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
- services.AddScoped<IWebhookPublisherService, WebhookPublisherService>();
- services.AddScoped<IAuthenticationService, AuthenticationService>();
- services.AddScoped<IFileService, FileService>();
- services.AddScoped<IFileEntityService, FileEntityService>();
- services.AddScoped<ICategoryService, CategoryService>();
- services.AddScoped<IDocumentService, DocumentService>();
- services.AddScoped<ITagService, TagService>();
- }
-
- /// <summary>
- /// App configuration
- /// </summary>
- public static void ConfigureBusiness(this WebApplication app)
- {
- //
- }
- }
- }
|