public List <IRootDirectoryStatistics> GetRootDirectoriesFromId(int id) { lock (_FileAndDirectoryStatsLock) { return(RootDirectoryStatistics.Where(rootDirectoryStats => rootDirectoryStats.Id == id).ToList()); } }
public List <IRootDirectoryStatistics> GetRootDirectoriesFromIdAndPath(int id, string path) { lock (_FileAndDirectoryStatsLock) { return(RootDirectoryStatistics.Where(rootDirectoryStats => rootDirectoryStats.Id == id && (string.Compare(rootDirectoryStats.RootDirectory, path, StringComparison.OrdinalIgnoreCase)) == 0).ToList()); } }
public IRootDirectoryStatistics CreateRootDirectory(int id) { lock (_FileAndDirectoryStatsLock) { RootDirectoryStatistics rds = new RootDirectoryStatistics { Id = id }; RootDirectoryStatistics.Add(rds); return rds; } }
public IRootDirectoryStatistics CreateRootDirectory(int id) { lock (_FileAndDirectoryStatsLock) { RootDirectoryStatistics rds = new RootDirectoryStatistics { Id = id }; RootDirectoryStatistics.Add(rds); return(rds); } }