예제 #1
0
 public List <IRootDirectoryStatistics> GetRootDirectoriesFromId(int id)
 {
     lock (_FileAndDirectoryStatsLock)
     {
         return(RootDirectoryStatistics.Where(rootDirectoryStats => rootDirectoryStats.Id == id).ToList());
     }
 }
예제 #2
0
 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());
     }
 }
예제 #3
0
 public IRootDirectoryStatistics CreateRootDirectory(int id)
 {
     lock (_FileAndDirectoryStatsLock)
       {
     RootDirectoryStatistics rds = new RootDirectoryStatistics { Id = id };
     RootDirectoryStatistics.Add(rds);
     return rds;
       }
 }
예제 #4
0
 public IRootDirectoryStatistics CreateRootDirectory(int id)
 {
     lock (_FileAndDirectoryStatsLock)
     {
         RootDirectoryStatistics rds = new RootDirectoryStatistics {
             Id = id
         };
         RootDirectoryStatistics.Add(rds);
         return(rds);
     }
 }