public LogSource(ILogDirectoryConfig config, LogFileStatsCache statsCache) { Debug.Assert(config != null, "LogSource.ctor: config is null."); Debug.Assert(statsCache != null, "LogSource.ctor: statsCache is null."); config_ = config; statsCache_ = statsCache; }
private static string GetFileId(ILogDirectoryConfig directory, string fullPath) { var fileName = Path.GetFileName (fullPath); return String.Format ("{0}-{1}", directory.Name, fileName).ToLower (); }