public static List <DeviceSession> GetSessions() { lock (lockObject) { if (sessions == null) { string path = @"..\..\..\AntMessageSimulatorTests\Device0.txt"; DeviceLogParser parser = new DeviceLogParser(); sessions = parser.Parse(path); } return(sessions); } }
async Task <List <DailyDeviceLog> > FetchDeviceLog(IDevice device) { var rawLog = await device.FetchLog(); if (rawLog == null || rawLog.Length == 0) { return(new List <DailyDeviceLog>()); } else { return(DeviceLogParser.SplitByDays(DeviceLogParser.ParseLog(rawLog))); } }