diff --git a/ServiceHost/Program.cs b/ServiceHost/Program.cs index 4c4b58d8..70db4c48 100644 --- a/ServiceHost/Program.cs +++ b/ServiceHost/Program.cs @@ -27,11 +27,13 @@ using Swashbuckle.AspNetCore.SwaggerUI; using AccountManagement.Domain.InternalApiCaller; using FluentValidation; using GozareshgirProgramManager.Application._Bootstrapper; +using GozareshgirProgramManager.Application.Interfaces; using GozareshgirProgramManager.Application.Modules.Users.Commands.CreateUser; using GozareshgirProgramManager.Infrastructure; using GozareshgirProgramManager.Infrastructure.Persistence.Seed; using Microsoft.OpenApi; using ServiceHost.Hubs.ProgramManager; +using ServiceHost.Notifications.ProgramManager; var builder = WebApplication.CreateBuilder(args); @@ -55,6 +57,7 @@ builder.Services.AddProgramManagerApplication(); builder.Services.AddProgramManagerInfrastructure(builder.Configuration); builder.Services.AddValidatorsFromAssemblyContaining(); builder.Services.AddScoped(); +builder.Services.AddScoped(); #region MongoDb var mongoConnectionSection = builder.Configuration.GetSection("MongoDb");