Baconography.NeutralServices.KitaroDB.UsageStatistics.GetSubredditAggregates C# (CSharp) Method

GetSubredditAggregates() public method

public GetSubredditAggregates ( string id ) : uint>>.Task
id string
return uint>>.Task
        public async Task<Tuple<uint, uint>> GetSubredditAggregates(string id)
        {
            var keyspace = GenerateSubIdKeyspace(id);
            DBKey targetKey = _subredditStatisticsDB.GetKeys()[0];

            using (var cursor = await _subredditStatisticsDB.SeekAsync(targetKey, keyspace, DBReadFlags.NoLock))
            {
                if (cursor != null)
                {
                    var currentRecord = cursor.Get();
                    uint links = BitConverter.ToUInt32(currentRecord.Skip(SubIdKeySpaceSize).Take(4).ToArray(), 0);
                    uint comments = BitConverter.ToUInt32(currentRecord.Skip(SubIdKeySpaceSize + 4).Take(4).ToArray(), 0);
                    return new Tuple<uint, uint>(links, comments);

                }
                else
                    return null;
            }
        }