1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| using Microsoft.AspNetCore.Mvc.Filters;
| using Yw.JWT;
|
| namespace HStation.WebApi
| {
|
| /// <summary>
| /// 方法筛选器
| /// </summary>
| public class ActionFilter : IAsyncActionFilter
| {
| /// <summary>
| ///
| /// </summary>
| /// <param name="context"></param>
| /// <param name="next"></param>
| /// <returns></returns>
| public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
| {
| //执行顺序 4 线程8
| //LogHelper.Info($"ActionFilter:{context.HttpContext.Request.Path}");
|
| Yw.Untity.UserRegister.Regist
| (
| UserManager.CorpID,
| UserManager.UserID,
| UserManager.AdminType,
| UserManager.UserName,
| UserManager.UserTag,
| UserManager.LoginAccountID,
| UserManager.LoginTypeID,
| UserManager.ProjectID,
| UserManager.SoftwareID
| );
| await next();
| }
|
| }
| }
|
|