Azure-Functions
Azure-Functions copied to clipboard
INameResolver for Queue Trigger in Azure Function V4
Hi,
I would like to use the INameResolver for queue trigger like it's available in Azure WebJob. I know it was not available in the past, but is it plan to add for Azure Function V4? Is there a workaround to be able to use it?
here is the code used for Azure WebJob:
public class TriggerNameResolver : INameResolver
{
private readonly IConfiguration _configuration;
private readonly MessagerSettings _messagerSettings;
public TriggerNameResolver(
IConfiguration configuration,
IOptions<MessagerSettings> messagerSettings
)
{
_configuration = configuration;
_messagerSettings = messagerSettings.Value;
}
public string Resolve(string name)
{
if (name.Contains(':'))
{
return _configuration[name].ToString();
}
return (_messagerSettings.QueueName + name).ToLower();
}
}
Thanks for your help
Hi @pragnagopa , Can we consider this issue as a feature request
Tagging @fabiocav for triage.
Yes please, because it doesn't seem to be available. I would like to use IConfiguration with Azure App Service to inject configuration in a more flexible manner.