Class PersistenceContext
- Namespace
- Lime
- Assembly
- Lime.dll
public abstract class PersistenceContext : IPersistenceContext
- Inheritance
-
PersistenceContext
- Implements
-
- Derived
-
- Inherited Members
-
Methods
AfterRead<T>(IPersistenceReadData, object)
public virtual void AfterRead<T>(IPersistenceReadData readData, object @object)
Parameters
readData
IPersistenceReadData
object
object
Type Parameters
T
BeforeRead<T>(Persistence, AbstractDeserializer, Stream, Format)
public virtual IPersistenceReadData BeforeRead<T>(Persistence persistence, AbstractDeserializer deserializer, Stream stream, Persistence.Format format)
Parameters
persistence
Persistence
deserializer
AbstractDeserializer
stream
Stream
format
Persistence.Format
Returns
- IPersistenceReadData
Type Parameters
T
BeforeWrite(Persistence, AbstractWriterSerializer, Stream, object, Format)
public virtual void BeforeWrite(Persistence persistence, AbstractWriterSerializer serializer, Stream stream, object @object, Persistence.Format format)
Parameters
persistence
Persistence
serializer
AbstractWriterSerializer
stream
Stream
object
object
format
Persistence.Format
protected DocumentHeader CreateDocumentHeader(object @object)
Parameters
object
object
Returns
- DocumentHeader
public DocumentHeader CreateDocumentHeader<T>()
Returns
- DocumentHeader
Type Parameters
T
EnumerateDataLayers()
protected abstract IEnumerable<(string Layer, int Version)> EnumerateDataLayers()
Returns
- IEnumerable<(string Layer, int Version)>
protected abstract bool IsDocumentHeaderServiced(Type type)
Parameters
type
Type
Returns
- bool
StoreMetadata(object, List<Metadata>)
public void StoreMetadata(object @object, List<Metadata> metadata)
Parameters
object
object
metadata
List<Metadata>
TryGetMetadata(object, out List<Metadata>)
public bool TryGetMetadata(object @object, out List<Metadata> metadata)
Parameters
object
object
metadata
List<Metadata>
Returns
- bool