Example #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());
        }
Example #2
0
 public Task <SlackResult> Command([HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest request) =>
 _requestHandler.HandleSlashCommandRequest(request, _endpointConfig);
 public async Task <IActionResult> Command([HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest request)
 {
     return(SlackResponse(await _requestHandler.HandleSlashCommandRequest(request, _endpointConfig).ConfigureAwait(false)));
 }