Skip to content

Instantly share code, notes, and snippets.

@HamidMosalla
Last active February 15, 2018 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HamidMosalla/8088417f46fcb38d8f88259376c9cfb8 to your computer and use it in GitHub Desktop.
Save HamidMosalla/8088417f46fcb38d8f88259376c9cfb8 to your computer and use it in GitHub Desktop.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
if (env.IsDevelopment())
{
app.UseBrowserLink();
app.UseDeveloperExceptionPage();
app.UseDatabaseErrorPage();
}
else
{
app.UseAspNetCoreExceptionHandler();
}
app.UseStatusCodePagesWithRedirects("/Error/Status/{0}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment