You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
670 B

using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
namespace EC.Web.Middleware
{
/// <summary>
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.09.11
/// 描 述:权限中间件
/// </summary>
public class MiddlewareEx
{
private readonly RequestDelegate _next;
public MiddlewareEx(RequestDelegate next)
{
_next = next;
}
/// <summary>
/// 执行
/// </summary>
/// <param name="httpContext">请求连接</param>
/// <returns></returns>
public async Task Invoke(HttpContext httpContext)
{
await _next(httpContext);
return;
}
}
}