.Net Core配置與自動更新

.Net Core 將以前Web.Config中的配置遷移到了appsettings.json文件中,並使用ConfigurationBuilder來讀取這個配置文件。並可設置在配置文件變化之後,自動從新加載,這樣可不用重啓你的程序。json 1 2 3 4 5 var builder = new ConfigurationBuilder()   .SetBasePath(env.ContentR
相關文章
相關標籤/搜索