![]() |
CQRS.NET
4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
|
Stores the most recent snapshots for replay and IAggregateRoot<TAuthenticationToken> rehydration on a SnapshotAggregateRoot<TAuthenticationToken,TSnapshot>. More...
Public Member Functions | |
virtual Snapshot | Get< TAggregateRoot > (Guid id) |
Get the latest Snapshot from storage. More... | |
Snapshot | Get (Type aggregateRootType, Guid id) |
Get the latest Snapshot from storage. More... | |
abstract void | Save (Snapshot snapshot) |
Saves the provided snapshot into storage. More... | |
Protected Member Functions | |
SnapshotStore (IConfigurationManager configurationManager, ISnapshotDeserialiser eventDeserialiser, ISnapshotBuilder snapshotBuilder, ILogger logger, ICorrelationIdHelper correlationIdHelper) | |
Instantiate a new instance of the SnapshotStore class. More... | |
abstract Snapshot | Get (Type aggregateRootType, string streamName) |
Get the latest Snapshot from storage. More... | |
virtual string | GenerateStreamName (Type aggregateRootType, Guid aggregateId) |
Generate a unique stream name based on the provided aggregateRootType and the aggregateId . More... | |
virtual EventData | BuildEventData (Snapshot snapshot) |
Builds the EventData from the snapshot . More... | |
Static Protected Attributes | |
const string | CqrsSnapshotStoreStreamNamePattern = "{0}/{1}" |
The pattern used to generate the stream name. More... | |
Properties | |
IConfigurationManager | ConfigurationManager [get] |
Gets or sets the IConfigurationManager More... | |
ISnapshotDeserialiser | EventDeserialiser [get] |
The ISnapshotDeserialiser used to deserialise snapshots. More... | |
ISnapshotBuilder | SnapshotBuilder [get] |
The ISnapshotBuilder used to build snapshots. More... | |
ILogger | Logger [get] |
The ILogger to use. More... | |
ICorrelationIdHelper | CorrelationIdHelper [get] |
The ICorrelationIdHelper to use. More... | |
Stores the most recent snapshots for replay and IAggregateRoot<TAuthenticationToken> rehydration on a SnapshotAggregateRoot<TAuthenticationToken,TSnapshot>.