Ejemplo n.º 1
0
        public async Task <IActionResult> Command(
            [HttpTrigger(AuthorizationLevel.Function, "post", Route = "food/command")] HttpRequest req,
            [Table("FoodTable")] CloudTable table)
        {
            ExecutionContext.TableStorage = table;
            await requestHandler.HandleSlashCommandRequest(req, endpointConfig);

            return(new OkResult());
        }
Ejemplo n.º 2
0
 public Task <SlackResult> Command([HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest request) =>
 _requestHandler.HandleSlashCommandRequest(request, _endpointConfig);
Ejemplo n.º 3
0
 public async Task <IActionResult> Command([HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest request)
 {
     return(SlackResponse(await _requestHandler.HandleSlashCommandRequest(request, _endpointConfig).ConfigureAwait(false)));
 }