private async Task <object> ConnectionResolver(IResolveConnectionContext <object> connectionContext) { IEnumerable <TSource> list = await QueryAsync(connectionContext); // ReSharper disable once PossibleInvalidOperationException return(await connectionContext.GetConnectionAsync(list, _pageLimit.Value)); }