Public/Base/InfrastructureBase/AuthBase/AuthenticationManager.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace InfrastructureBase.AuthBase
{
public abstract class AuthenticationManager
{
public static List<AuthenticationInfo> AuthenticationMethods = new List<AuthenticationInfo>();
public static void RegisterAllFilter()
{
AuthenticationMethods = Common.GetAllMethodByAuthenticationFilter();
}
public abstract Task AuthenticationCheck(string routePath);
}
public class AuthenticationInfo
{
public AuthenticationInfo()
{
}
public AuthenticationInfo(string srvName, string funcName, bool checkPermission, string path)
{
SrvName = srvName;
FuncName = funcName;
CheckPermission = checkPermission;
Path = path;
}
public string SrvName { get; set; }
public string FuncName { get; set; }
public bool CheckPermission { get; set; }
public string Path { get; set; }
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
