Esempio n. 1
0
        public override async Task InvokeAsync(IHttpFunctionContext context)
        {
            context.Logger.LogInformation("Getting snapshots...");

            context.Request.Query.TryGetValue("streamName", out StringValues streamName);

            var models = await _streamService.GetSnapshotsAsync(streamName);

            context.ActionResult = new OkObjectResult(models);
        }