Last active
February 15, 2018 07:47
-
-
Save HamidMosalla/8088417f46fcb38d8f88259376c9cfb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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