/// <summary> /// 构造函数 /// </summary> /// <param name="config">配置信息</param> /// <param name="loggerFactory">日志工厂</param> public DefaultLoginValidator(DefaultLoginValidatorConfig config = null, ILoggerFactory loggerFactory = null) { if (loggerFactory != null) { logger = loggerFactory.CreateLogger <DefaultLoginValidator>(); } LoadConfig(config); }
/// <summary> /// 加载日志信息 /// </summary> /// <param name="config"></param> public void LoadConfig(DefaultLoginValidatorConfig config) { validatorConfig = config; LogInformation("LoginValidator load config success."); }