Class LimePersistenceContext
- Namespace
- Lime
- Assembly
- Lime.dll
public class LimePersistenceContext : PersistenceContext, IPersistenceContext
- Inheritance
-
LimePersistenceContext
- Implements
-
- Inherited Members
-
Constructors
LimePersistenceContext()
public LimePersistenceContext()
Methods
BeforeRead<T>(Persistence, AbstractDeserializer, Stream, Format)
public override 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 override 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
EnumerateDataLayers()
protected override IEnumerable<(string Layer, int Version)> EnumerateDataLayers()
Returns
- IEnumerable<(string Layer, int Version)>
GetDataLayersHash()
public static SHA256 GetDataLayersHash()
Returns
- SHA256
protected override bool IsDocumentHeaderServiced(Type type)
Parameters
type
Type
Returns
- bool
RegisterDataLayers(IEnumerable<(string Layer, int Version)>)
public static void RegisterDataLayers(IEnumerable<(string Layer, int Version)> layers)
Parameters
layers
IEnumerable<(string Layer, int Version)>