示例#1
0
 public async Task <IActionResult> Post(
     [HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req,
     [ServiceBus("events", Connection = "TopicSend")] IAsyncCollector <Message> messages) =>
 await _requestProcessor.ProcessRequest(Name,
                                        async() => _commandFactory.CreateCellarCommand(await _requestProcessor.ReadBodyAsync <Cellar>(req), req.Headers),
                                        messages);