Class PersistenceManager
PersistenceManager responsible for objects persistence (marking as dirty, delete, persist to DataStore).
Inheritance
System.Object
PersistenceManager
Namespace: Eco.Core.Serialization
Assembly: Eco.Core.dll
Syntax
public class PersistenceManager : Object
Constructors
PersistenceManager()
Declaration
public PersistenceManager()
Methods
AddBlob(DataBlob)
Adds blob
to persistence manager. It will be persisted in next call to Eco.Core.Serialization.PersistenceManager.PersistAllAsync(Eco.Core.Serialization.DataStore.ExclusiveAccess).
Declaration
public void AddBlob(DataBlob blob)
Parameters
Type | Name | Description |
---|---|---|
DataBlob | blob |
ClearDirtyState(IStorage)
Clears dirty state for the storage
.
Declaration
public void ClearDirtyState(IStorage storage)
Parameters
Type | Name | Description |
---|---|---|
IStorage | storage |
IsDirty(IStorage)
Checks if the storage
is dirty.
Declaration
public bool IsDirty(IStorage storage)
Parameters
Type | Name | Description |
---|---|---|
IStorage | storage |
Returns
Type | Description |
---|---|
System.Boolean |