Example #1
0
 Event LoadEvent(LogName name)
 {
     return(new Event {
         Name = name,
         Sessions = new DirectoryInfo(Path.Combine(rootPath, name.Filename))
                    .GetFiles()
                    .Select(x => nameProvider.ParseName(x.Name))
                    .Where(x => x.Success)
                    .OrderBy(x => x.Name.Timestamp)
                    .Select(x => LoadSession(x.Name))
                    .ToList()
     });
 }
Example #2
0
 Session LoadSession(LogName name)
 {
     return(new Session {
         Name = name
     });
 }
Example #3
0
 public string SerializeName(LogName name)
 {
     return(name.Timestamp.ToString(TimestampFormat) + "_" + PathEncode(name.Name));
 }