How can I configure an Azure Function triggered by Service Bus with a custom INameResolver?
Asked Answered
B

1

7

I want to be able to control the name of the Service Bus Queue or Subscription that my Azure Function reads from at run-time.

With WebJobs (which Azure Functions are based on) you could do this by implementing and configuring a custom INameResolver, see: How to have a configuration based queue name for web job processing?

However, with Azure functions I have no access to JobHostConfiguration to wire up this custom resolver.

Can I still use an INameResolver, and if so how?

Boater answered 19/6, 2017 at 8:37 Comment(1)
Cross-posted to: github.com/Azure/Azure-Functions/issues/345Boater
T
5

Right now you cannot use a custom INameResolver as there is no mechanism for injecting your own services like this into the host. It's being tracked here: https://github.com/Azure/azure-webjobs-sdk-script/issues/1579

Tarantass answered 19/6, 2017 at 22:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.