Class UserFileBackupService
- Namespace
- Oscova.Agents.FileBackups
- Assembly
- Oscova.Agents.dll
Stores bounded restore points beneath caller-selected user roots.
public sealed class UserFileBackupService : IUserFileBackupServiceInheritance
Implements
Inherited Members
Constructors
- UserFileBackupService(Func<string, string>, Func<string, bool>, long, ILogger<UserFileBackupService>)
-
Creates a backup service with caller-owned root, file, and size policies.
Methods
- CaptureBeforeMutationAsync(string, string, CancellationToken)
-
Captures the current file contents before a caller mutates the file.
- ListBackupsAsync(string, string, CancellationToken)
-
Lists captured versions for the original relative file path.
- ReadBackupAsync(string, string, string, CancellationToken)
-
Reads one stored backup and its text content.
- RestoreBackupAsync(string, string, string, CancellationToken)
-
Restores a backup; cancellation is honored before the final mutation, then the write completes.