// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { FooConfiguration.Configure(app, host => host.UseStaticFiles() .UseAuthentication() .UseExceptionHandler("/Home/Error")); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { FooConfiguration.Configure(app, host => { if (env.IsDevelopment()) { host.UseBrowserLink(); host.UseDeveloperExceptionPage(); } else { host.UseExceptionHandler("/Home/Error"); } host.UseStaticFiles(); return(host); }); }
public void Configure(IApplicationBuilder app) { FooConfiguration.Configure(app, host => host.UseAuthentication()); }
public void Configure(IApplicationBuilder app) { FooConfiguration.Configure(app, host => host); }