Read from Service Bus Queue and Write to a different SB Queue in .Net
Solution 1:
- You're mixing a Service Bus trigger with a return type for what looks like an HTTP trigger. Remove
IActionResult
as your return type. -
IAsyncCollector
is how you dispatch messages, don't instantiate a newServiceBusClient
and senders.