Ejemplo n.º 1
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IHostingEnvironment env)
 {
     CorsConfig.Use_CorsConfig_App(app);
     app.UseMvc();
     SwaggerConfig.Use_SwaggerConfigApp(app);
     app.UseRabbitListener();
 }
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseDatabaseErrorPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }
            CorsConfig.Use_CorsConfig_App(app);

            ConfigIdentity.Use_Identity1_App(app);
            app.UseAuthentication();
            app.UseMvc();
            SwaggerConfig.Use_SwaggerConfigApp(app);
        }