【问题标题】:Can you use the FeatureGate decorator in Azure functions from Feature Management libary from Microsoft?您可以在 Microsoft 的功能管理库中使用 Azure 功能中的功能门装饰吗?
【发布时间】:2022-01-02 12:11:34
【问题描述】:

目前,我在 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
        )

【问题讨论】:

标签: c# azure asp.net-core .net-core


【解决方案1】:

你能在 Azure 函数 中使用 FeatureGate 装饰器吗? Microsoft 的功能管理库?

  • 目前没有可用于 FeatureGate 装饰器与 Azure 函数一起使用的示例。
  • 我们可以将 Feature flag 与 Azure 函数一起使用。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-12-10
    • 1970-01-01
    • 2018-12-06
    • 1970-01-01
    • 2021-05-03
    • 1970-01-01
    • 2016-02-14
    • 2013-07-30
    相关资源
    最近更新 更多