fix vali middleware

This commit is contained in:
HTR
2018-07-02 18:15:35 +08:00
parent 2e19235619
commit 1b5155aeaa
14 changed files with 358 additions and 226 deletions
@@ -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;
}
}
}