public DisplayCounterRecords GetCounterRecord(string path, string name, string group = null, int start = 0, int end = -1) { string me = whoami(); if (string.IsNullOrEmpty(group)) { group = MembershipHelper.DefaultGroup(me); } else { MembershipHelper.CheckMembership(group, me); } List <DisplayRecord> records = new List <DisplayRecord>(); foreach (var record in _counterManager.GetCounterRecords(name, group, start, end)) { DisplayRecord rec = new DisplayRecord(record.Key, CounterRecordHelper.GetValue(record, path)); records.Add(rec); } return(new DisplayCounterRecords(name, group, path, start, records)); }