Method Save
Save(IDataPersistence, Action, Action<Exception>)
Asynchronously saves data through the persistence layer.
Declaration
public static void Save(IDataPersistence dataPersistence, Action onSaveCompleted = null, Action<Exception> onSaveFailed = null)
Parameters
Type | Name | Description |
---|---|---|
IDataPersistence | dataPersistence | The persistence layer used to execute the process |
Action | onSaveCompleted | Called when the saving process is completed with success |
Action<Exception> | onSaveFailed | Called when the saving process failed |