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
+4
View File
@@ -15,6 +15,8 @@ using Microsoft.AspNetCore.Mvc;
using COMCMS.Common;
using COMCMS.Web.Models;
using COMCMS.Web.Common;
using COMCMS.Web.ExceptionHandler;
using Lib.Core.MiddlewareExtension.Extension;
namespace COMCMS.Web
{
@@ -118,6 +120,8 @@ namespace COMCMS.Web
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
});
app.UseMiddlewareExtension(new ResultExceptionHandler());
//加入HttpContext
//MyHttpContext.ServiceProvider = svp;
}