DeadByDaylightBackup.Business/Program/BackupHandler.cs
/// <summary>
/// Cleanup Backups that are not filled!
/// </summary>
Cleanup Backups that are not filled!
Cleanup Backups that are not filled!
private void CleanUpBadBackups()
        {
            lock (BackupStore)
            {
                RemoveBackups(BackupStore.Where(x => x.Value == null).Select(x => x.Key));
                RemoveBackups(BackupStore.Where(x => x.Value.Date == null).Select(x => x.Key));
                RemoveBackups(BackupStore.Where(x => x.Value.FullFileName == null).Select(x => x.Key));
                RemoveBackups(BackupStore.Where(x => x.Value.FileName == null).Select(x => x.Key));
            }
        }
private void CleanUpBadBackups ( ) { lock ( BackupStore ) { RemoveBackups ( BackupStore . Where ( x => x . Value == null ) . Select ( x => x . Key ) ) ; RemoveBackups ( BackupStore . Where ( x => x . Value . Date == null ) . Select ( x => x . Key ) ) ; RemoveBackups ( BackupStore . Where ( x => x . Value . FullFileName == null ) . Select ( x => x . Key ) ) ; RemoveBackups ( BackupStore . Where ( x => x . Value . FileName == null ) . Select ( x => x . Key ) ) ; } }
Cleanup Backups that are not filled!
Cleanup Backups that are not filled!