简体   繁体   中英

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

Currently I haven't had any success with the feature gate decorator outside of an API endpoint and while in my situation to use it on my Azure functions is rather redundant I was wondering if it was possible rather than sensible?

Using the manager/config dependency is great, but like simplicity of the decorator.

[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 from Feature Management libary from Microsoft?

  • Currently there is no samples available for FeatureGate decorator to use with Azure function.
  • Instead of that we can use Feature flag with Azure function.

To get started please refer this MS DOC: Add feature flags to an Azure Functions app & Use feature flags in an ASP.NET Core app .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM