public async Task Run([ServiceBusTrigger(QueueName, Connection = "ServiceBus")] string message)
 {
     await _translateTextService.TranslateTextAsync(message, QueueName);
 }
Пример #2
0
        public async Task <string> Run([ServiceBusTrigger(QueueName, Connection = "ServiceBus")] string message)
        {
            var output = await _translateTextService.TranslateTextAsync(message, QueueName);

            return(output.OutMessage);
        }