mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 03:58:45 +08:00
18 lines
516 B
C#
18 lines
516 B
C#
namespace mRemoteNG.Config.DataProviders
|
|
{
|
|
public class FileDataProviderWithRollingBackup : FileDataProvider
|
|
{
|
|
private readonly FileBackupCreator _fileBackupCreator;
|
|
|
|
public FileDataProviderWithRollingBackup(string filePath) : base(filePath)
|
|
{
|
|
_fileBackupCreator = new FileBackupCreator();
|
|
}
|
|
|
|
public override void Save(string content)
|
|
{
|
|
_fileBackupCreator.CreateBackupFile(FilePath);
|
|
base.Save(content);
|
|
}
|
|
}
|
|
} |