Skip to main content

RemoteFiles

A static class in Alta.IO, Alta.Utilities.

Static registry of every remote-backed save file, so changed files can be backed up together. The backup console command calls BackupAllChanged.

Fields​

3 private and internal fields
MemberWhat it is
private static List<IRemoteAltaFile> allRemoteFilesEvery remote file created. Files add themselves in the constructor; the list holds them so they are never collected.
private static ConcurrentDictionary<IRemoteAltaFile, byte> currentlyBackingUpFiles with a backup in progress, so the same file is not backed up twice at once.
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
static void BackupAllChanged(bool isInstant)Server: backs up every remote file that has changed and is not already backing up, either blocking or async.