| | |
| | | using Microsoft.AspNetCore.Mvc.Filters; |
| | | using Yw.JWT; |
| | | |
| | | namespace IStation.WebApi |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 结果筛选器 |
| | | /// 方法筛选器 |
| | | /// </summary> |
| | | public class ActionFilter : IAsyncActionFilter |
| | | { |
| | |
| | | /// <returns></returns> |
| | | public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) |
| | | { |
| | | LogHelper.Info($"ActionFilter:{context.HttpContext.Request.Path}"); |
| | | //执行顺序 4 线程8 |
| | | //LogHelper.Info($"ActionFilter:{context.HttpContext.Request.Path}"); |
| | | |
| | | //这里应该挪到actionfilter中 |
| | | Yw.Untity.UserRegister.Regist |
| | | ( |
| | | UserManager.CorpID, |
| | | UserManager.UserID, |
| | | UserManager.AdminType, |
| | | UserManager.UserName, |
| | | UserManager.UserTag, |
| | | UserManager.LoginAccountID, |
| | | UserManager.LoginTypeID, |
| | | UserManager.ProjectID, |
| | | UserManager.SoftwareID |
| | | ); |
| | | await next(); |
| | | } |
| | | |