IOptions<T> //站点启动后,获取到的值永远不变

IOptionsSnapshot<T> //站点启动后,每次获取到的值都是配置文件里的最新值 reloadOnChange:true 必须为true)

IOptionsMonitor<T> //站点启动后,如果配置文件有变化会发布事件 (reloadOnChange:true 必须为true)

 默认的reloadOnChange是true

相关文章:

  • 2022-12-23
  • 2021-10-19
  • 2021-05-31
  • 2021-05-19
  • 2022-12-23
  • 2021-09-11
  • 2021-06-19
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-10-01
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案