// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.AddConfigurationManager(new ConfigManager()); app.UseMvc(); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); }
public static IApplicationBuilder AddConfigurationManager(this IApplicationBuilder app, IConfigurationBuilder builder) { return(app.AddConfigurationManager(new CoreConfigurationManager(builder))); }