Created
May 10, 2018 08:14
-
-
Save PradeepLoganathan/24281bbc548336869f9e4a85f44b8877 to your computer and use it in GitHub Desktop.
Static method to make it easier to use the exception handler middleware in startup class
This file contains hidden or 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
| using Microsoft.AspNetCore.Builder; | |
| namespace thetalentbot.JobSeeker.Exceptions | |
| { | |
| public static class ExceptionHandlerMiddleware | |
| { | |
| public static IApplicationBuilder UseExceptionHandlingMiddleware(this IApplicationBuilder builder) | |
| { | |
| return builder.UseMiddleware<ExceptionHandler>(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment