Open beginor opened 3 years ago
https://beginor.github.io/2020/08/03/configuration-reload-on-change-with-aspnet-core.html
在过滤器 (Filter) 中使用方法和中间件 (Middleware) 类似, 也是要用 IOptionsMonitor<T> 进行监控
IOptionsMonitor<T>
在 ASP.NET Core 中修改配置文件后自动加载新的配置
https://beginor.github.io/2020/08/03/configuration-reload-on-change-with-aspnet-core.html