Class AutoSaver
Class that creates the auto-save directory and publishes the auto-save timer event.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class AutoSaver : IAutoSaver, IDisposable
Constructors
View SourceAutoSaver(IPhoenixLogger, IArubaModuleSettings, IEventAggregator)
Constructor for AutoSaver when using dependency injection.
Declaration
public AutoSaver(IPhoenixLogger logger, IArubaModuleSettings settings, IEventAggregator eventAggregator)
Parameters
Type | Name | Description |
---|---|---|
IPhoenixLogger | logger | Injected logger. |
IArubaModuleSettings | settings | Injected settings |
IEventAggregator | eventAggregator | Injected event aggregator. |
Properties
View SourceAutoSavePath
Gets the file path to the location where auto-saved files are located.
Declaration
public string AutoSavePath { get; }
Property Value
Type | Description |
---|---|
string |
BackupDocuments
Gets the documents to process.
Declaration
public List<IBackupDocument> BackupDocuments { get; }
Property Value
Type | Description |
---|---|
List<IBackupDocument> |
Methods
View SourceAutoSaveTimerTick(object, EventArgs)
The Raised event.
Declaration
public void AutoSaveTimerTick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
object | sender | The sender. |
EventArgs | e | The event args. |
Dispose()
Dispose of the object.
Declaration
public void Dispose()
InitializeAndStartAutoSaveTimer()
Starts the timer.
Declaration
public void InitializeAndStartAutoSaveTimer()