Exemplo n.º 1
0
 public IList <WebDiskSpaceInformation> GetLocalDiskInformation(string filter = null)
 {
     return(DriveInfo.GetDrives()
            .Select(x => DiskSpaceInformation.GetSpaceInformation(x.Name))
            .Filter(filter)
            .ToList());
 }
Exemplo n.º 2
0
 public IList <WebDiskSpaceInformation> GetAllRecordingDiskInformation()
 {
     return(GetCards()
            .Select(x => x.RecordingFolder).Distinct()
            .Select(x => DiskSpaceInformation.GetSpaceInformation(x))
            .GroupBy(x => x.Disk, (key, list) => list.First())
            .ToList());
 }
Exemplo n.º 3
0
        public WebDiskSpaceInformation GetRecordingDiskInformationForCard(int id)
        {
            string folder = Card.Retrieve(id).ToWebCard().RecordingFolder;

            return(DiskSpaceInformation.GetSpaceInformation(folder));
        }
Exemplo n.º 4
0
 public IList <WebDiskSpaceInformation> GetLocalDiskInformation()
 {
     return(DriveInfo.GetDrives()
            .Select(x => DiskSpaceInformation.GetSpaceInformation(x.Name))
            .ToList());
 }