![](/img/trans.png)
[英]How to reference another value within the same appsettings.json file?
[英]Feature flags - How to substitute appsettings.json for another json file
我一直在閱讀這篇文章: https://docs.microsoft.com/en-us/azure/azure-app-configuration/use-feature-flags-dotnet-core?tabs=core5x
也許它在那里,我錯過了它,或者我還沒有遇到它但我想知道如何將我的切換配置從 appsettings 文件移動到另一個文件中,僅用於功能標志。
我正在尋找對文章或教程的引用。 謝謝
您可以創建帶有功能標志的 JSON 文件並將其包含在配置系統中。 這是代碼。
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("FeatureFlags.json");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.