public override async Task InvokeAsync(IHttpFunctionContext context)
        {
            context.Logger.LogInformation("Getting events...");

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

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

            int.TryParse(startAtVersionAsString, out int startAtVersion);

            var models = await _streamService.GetEventsAsync(streamName, startAtVersion);

            context.ActionResult = new OkObjectResult(models);
        }