Ejemplo n.º 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddRazorPages();
            services.AddControllersWithViews().AddNewtonsoftJson();
            ModuleConfiguration moduleConfiguration = new ModuleConfiguration(services, Configuration);

            moduleConfiguration.ConfigureDataBase();
            moduleConfiguration.ConfigureSecurity();
            moduleConfiguration.ConfigureSwagger();
            moduleConfiguration.ConfigureServices();
            moduleConfiguration.ConfigureCors();
            moduleConfiguration.ConfigureForwardedHeaders();
            moduleConfiguration.ConfigureSmtpClient();
            moduleConfiguration.ConfigureSignalR();
        }