Method Save
Save(IDataPersistence, Action, Action)
Asynchronously saves data through the persistence layer.
Declaration
public static void Save(IDataPersistence dataPersistence, Action onSaveCompleted = null, Action 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 | onSaveFailed | Called when the saving process failed |