I have a WebJob which reads messages from an event topic, processes them and then creates a message on a different topic.
I can achieve this easily using a service bus trigger.
public void EventSubscriptionToNotificationTopic(
[ServiceBusTrigger(Subscribe.TopicName, Subscribe.SubscriptionName)] BrokeredMessage input,
[ServiceBus(Publish.TopicName)] out BrokeredMessage output)
To do this we have to use a service bus connection string which contains a shared access key which permits send and listen permissions at a level which has access to both topics (root).
We would like to be able to use different connection strings/SAS tokens locked down to permissions we need on these topics (Listen on event topic subscription and Send for the topic to publish to).
Is at all possible to specify which connection a service bus trigger or attribute would use?
If not would I have to roll my own, maybe just using the service bus trigger and WebJob connection string to read the message and then use a TopicClient to create a new message on the publish topic?