Azure / Azure/Azure-Functions

INameResolver for Queue Trigger in Azure Function V4

Open
#2,143 9 comments 4 reactions 1 assignee Claimed by @v-bbalaiagar View on GitHub
feature
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

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
)
{
_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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.