10 [DefaultImplementation(typeof(StorageService))]
18 #region LifeCycle management
24 Task
Init(CancellationToken? cancellationToken);
61 Task<T> FindFirstIgnoreRest<T>() where T : class;
Wraps the Database for easy access to persistent encrypted storage. Use this for any sensitive data.
Task Init(CancellationToken? cancellationToken)
Initializes the persistent storage on a background task. This call is asynchronous.
string DataFolder
Folder for database.
Task< T > FindFirstDeleteRest< T >()
Returns the first match (if any) of the given type. Deletes the other matching entries.
void FlagForRepair()
Flags the database for repair, so that the next time the app is opened, the database will be repaired...
Task< bool > WaitInitDone()
Waits for initialization of the storage service to be completed.
Task Shutdown()
Shuts down this persistent storage instance.
Task Insert(object obj)
Inserts an object into the database.
Task Update(object obj)
Updates an object in the database.
Interface for database exports.