Example #1
0
        public async Task <GetApiLogsResponse> Handle(GetApiLogsRequest request, CancellationToken cancellationToken)
        {
            var apiLogs = await logReader.GetApiLogsFromFile(request);

            httpContextWriter.AddPagination(apiLogs.CurrentPage, apiLogs.PageSize, apiLogs.TotalCount,
                                            apiLogs.TotalPages);

            return(new GetApiLogsResponse {
                ApiLogs = apiLogs
            });
        }