У меня есть этот класс:
Код: Выделить всё
public class OutputBindings
{
[ServiceBusOutput("%Queue1%", Connection = "ConnnectionString1")]
public string Queue1 { get; set; }
[ServiceBusOutput("%Queue2%", Connection = "ConnnectionString2")]
public string Queue2 { get; set; }
}
Код: Выделить всё
[Function("FunctionName")]
public async Task Run([ServiceBusTrigger("%TriggerQueue%", Connection = "ConnectionString")] string message)
{
OutputBindings ob = new OutputBindings()
{
Queue1 = message,
Queue2 = message
};
// do other stuff
{
Подробнее здесь: https://stackoverflow.com/questions/788 ... -on-return