AppMetrics.DataReader.GetRecordsFromPath C# (CSharp) Method

GetRecordsFromPath() public static method

public static GetRecordsFromPath ( string dataPath, TimePeriod period ) : List
dataPath string
period TimePeriod
return List
        public static List<Record> GetRecordsFromPath(string dataPath, TimePeriod period)
        {
            var res = new List<Record>();

            var sessions = GetSessionsFromPath(dataPath, period);

            foreach (var session in sessions)
            {
                var tmp = GetRecordsFromSession(session, period);
                res.AddRange(tmp);
            }

            return res;
        }