コード例 #1
0
        public async Task <IEnumerable <TimesheetModel> > Trigger(
            [ActivityTrigger]
            GetTimesheets request,
            ILogger log,
            CancellationToken ct)
        {
            log.LogInformation("C# HTTP trigger function processed a request.");

            return(await Mediator.Send(request, ct));
        }
コード例 #2
0
        public async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)]
            GetTimesheets request,
            ILogger log,
            CancellationToken ct)
        {
            log.LogInformation("C# HTTP trigger function processed a request.");

            return(await RunRequest(request, ct));
        }