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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With