File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
Source/Boxed.AspNetCore/Middleware Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,13 @@ namespace Boxed.AspNetCore.Middleware
6
6
using Microsoft . Extensions . DependencyInjection ;
7
7
using Microsoft . Extensions . Logging ;
8
8
9
- internal class HttpExceptionMiddleware
9
+ internal class HttpExceptionMiddleware : IMiddleware
10
10
{
11
- private readonly RequestDelegate next ;
12
-
13
- public HttpExceptionMiddleware ( RequestDelegate next ) => this . next = next ;
14
-
15
- public async Task Invoke ( HttpContext context )
11
+ public async Task InvokeAsync ( HttpContext context , RequestDelegate next )
16
12
{
17
13
try
18
14
{
19
- await this . next . Invoke ( context ) . ConfigureAwait ( false ) ;
15
+ await next . Invoke ( context ) . ConfigureAwait ( false ) ;
20
16
}
21
17
catch ( HttpException httpException )
22
18
{
Original file line number Diff line number Diff line change @@ -5,17 +5,13 @@ namespace Boxed.AspNetCore.Middleware
5
5
using Microsoft . Extensions . DependencyInjection ;
6
6
using Microsoft . Extensions . Logging ;
7
7
8
- internal class InternalServerErrorOnExceptionMiddleware
8
+ internal class InternalServerErrorOnExceptionMiddleware : IMiddleware
9
9
{
10
- private readonly RequestDelegate next ;
11
-
12
- public InternalServerErrorOnExceptionMiddleware ( RequestDelegate next ) => this . next = next ;
13
-
14
- public async Task Invoke ( HttpContext context )
10
+ public async Task InvokeAsync ( HttpContext context , RequestDelegate next )
15
11
{
16
12
try
17
13
{
18
- await this . next . Invoke ( context ) . ConfigureAwait ( false ) ;
14
+ await next . Invoke ( context ) . ConfigureAwait ( false ) ;
19
15
}
20
16
catch
21
17
{
You can’t perform that action at this time.
0 commit comments