FeatureGate 属性发生了什么?
What happened with the FeatureGate attribute?
我正在检查 official documentation from Microsoft and it states FeatureGate 属性可用于控制是否启用整个控制器 class 或特定操作。我已经安装了 Microsoft.Azure.AppConfiguration.AspNetCore 4.2.1 甚至 4.3.0-preview,但我找不到它:
using Microsoft.FeatureManagement.Mvc;//doesn't recognize .Mvc it recognizes up to Microsoft.FeatureManagement
[FeatureGate(MyFeatureFlags.FeatureA)]//doesn't recognize FeatureGate either
FeatureGateAttribute
是 ASP.NET Core 应用程序的 API。它不包含在基本功能管理包中 (Microsoft.FeatureManagement
)。您需要安装 Microsoft.FeatureManagement.AspNetCore
软件包。
我正在检查 official documentation from Microsoft and it states FeatureGate 属性可用于控制是否启用整个控制器 class 或特定操作。我已经安装了 Microsoft.Azure.AppConfiguration.AspNetCore 4.2.1 甚至 4.3.0-preview,但我找不到它:
using Microsoft.FeatureManagement.Mvc;//doesn't recognize .Mvc it recognizes up to Microsoft.FeatureManagement
[FeatureGate(MyFeatureFlags.FeatureA)]//doesn't recognize FeatureGate either
FeatureGateAttribute
是 ASP.NET Core 应用程序的 API。它不包含在基本功能管理包中 (Microsoft.FeatureManagement
)。您需要安装 Microsoft.FeatureManagement.AspNetCore
软件包。