fix vali middleware
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
|
||||
namespace Lib.Core.MiddlewareExtension.Extension
|
||||
{
|
||||
public static class MiddlewareExtension
|
||||
{
|
||||
public static IApplicationBuilder UseMiddlewareExtension(this IApplicationBuilder app, IExceptionHandler exceptionHandler)
|
||||
{
|
||||
app.UseMiddleware<ExceptionHandlingMiddleware>(exceptionHandler);
|
||||
|
||||
return app;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user