I have a Azure Webjob that needs to read from Azure EventHub and write the output to another EventHub.
In all the examples I have seen the name of the Event Hub is specified at compile time directly in the trigger attribute. However, I would like to use different names depending on a value in my config file (so I can name my Event Hub differently in production and testing for example). Is it possible?
Right now my code looks like this, and as you can see the names "xxx" and "yyy" are compile time constants.
public void ProcessQueueMessage(
[EventHubTrigger("xxx")]EventData[] msgs,
[EventHub("yyy")]ICollector<EnrichedTrackingEvent> result,
TraceWriter log)
{
//...
}