feat: SimApiOptions 增加 authCheckers 注册表
存储 ISimApiAuthChecker 类型列表(由 addSimApi 自动扫描填充), 供 @SimApiAuth 鉴权时逐个从 DI 解析执行
This commit is contained in:
@@ -7,11 +7,17 @@
|
||||
package simapi.configurations
|
||||
|
||||
import std.collection.*
|
||||
import std.reflect.*
|
||||
|
||||
/**
|
||||
* SimApi 全局配置:对应 C# 的 SimApi.Configurations.SimApiOptions。
|
||||
*/
|
||||
public class SimApiOptions {
|
||||
/**
|
||||
* 已注册的 ISimApiAuthChecker 类型列表(由 addSimApi 扫描调用者程序集填充,
|
||||
* 运行时在 @SimApiAuth 鉴权时逐个从 DI 解析执行,对齐 C# AddScoped 扫描)。
|
||||
*/
|
||||
public var authCheckers: ArrayList<TypeInfo> = ArrayList<TypeInfo>()
|
||||
/**
|
||||
* Redis 配置;配置则使用 Redis,不配则自动使用 InMemory。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user