IOptions<T> //站點啟動后,獲取到的值永遠不變IOptionsSnapshot<T> //站點啟動后,每次獲取到的值都是組態檔里的最新值 (reloadOnChange:true 必須為true)IOptionsMonitor<T> //站點啟動后,如果組態檔有變化會發布事件 (reloadOnChange:true 必須為true)
默認的
reloadOnChange是true
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/79152.html
標籤:.NET Core
上一篇:C#編程
