Beispiel #1
0
        public int CountRestorePointsForCleaning(BackUp backUp)
        {
            var result     = 0;
            var backUpSize = backUp.Size();

            foreach (var storage in backUp.BackUpComponents.Where(storage => backUpSize > ClearingSize))
            {
                result++;
                backUpSize -= storage.Size();
            }
            return(result);
        }