gpt4 book ai didi

c# - 您可以使用 Microsoft 功能管理库中的 Azure 函数中的功能门装饰器吗?

转载 作者:行者123 更新时间:2023-12-02 07:19:12 24 4
gpt4 key购买 nike

目前,我在 API 端点之外的功能门装饰器方面还没有取得任何成功,而在我的情况下,在我的 Azure 函数上使用它是相当多余的,我想知道这是否可能而不是明智的?

使用管理器/配置依赖项很棒,但就像装饰器的简单性一样。

[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
)

最佳答案

Can you use the FeatureGate decorator in Azure functions fromFeature Management libary from Microsoft?

  • 目前没有可供 FeatureGate 装饰器与 Azure 函数一起使用的示例。
  • 我们可以将功能标志与 Azure 函数一起使用来代替。

要开始使用,请参阅此 MS DOC:Add feature flags to an Azure Functions app & Use feature flags in an ASP.NET Core app .

关于c# - 您可以使用 Microsoft 功能管理库中的 Azure 函数中的功能门装饰器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70090409/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com