[英]Can you use the FeatureGate decorator in Azure functions from Feature Management libary from Microsoft?
目前,我在 API 端點之外的功能門裝飾器沒有任何成功,而在我的情況下,在我的 Azure 功能上使用它是相當多余的,我想知道它是否可能而不是明智的?
使用 manager/config 依賴關系很好,但就像裝飾器的簡單性一樣。
[FeatureGate(FeatureFlags.MyFeatureFlag)]
[FunctionName("MyFunctionHandler")]
[MyExponentialBackoffRetry()]
public async Task RunAsync(
[ServiceBusTrigger("myfunctions/functiondata", "myfunctiondemo", Connection = "SERVICE_BUS_CONNECTION_STRING")]
requestModel request,
MessageReceiver messageReceiver,
string messageId,
string lockToken,
ILogger logger
)
您可以在來自 Microsoft 的功能管理庫的Azure 函數中使用
FeatureGate
裝飾器嗎?
FeatureGate
裝飾器與 Azure function 一起使用的樣本。Feature flag
與 Azure function 一起使用。要開始使用,請參閱此 MS DOC: Add feature flags to an Azure Functions app & Use feature flags in an ASP.NET Core app 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.