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
)