Class SnapshotEnvelope<TKey>
Default implementation of a snapshot envelope that contains aggregate state.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicProperties)]
public sealed class SnapshotEnvelope<TKey> : ISnapshotEnvelope<TKey>
Type Parameters
TKeyThe type of the aggregate identifier.
- Inheritance
-
SnapshotEnvelope<TKey>
- Implements
-
ISnapshotEnvelope<TKey>
- Inherited Members
- Extension Methods
Properties
AggregateId
Gets the identifier of the aggregate this snapshot belongs to.
public required TKey AggregateId { get; init; }
Property Value
- TKey
The current AggregateId value.
ApplicationState
Gets the serialized application state data.
public required string ApplicationState { get; init; }
Property Value
- string
The current ApplicationState value.
SnapshotMetadata
Gets the metadata associated with this snapshot.
public required string SnapshotMetadata { get; init; }
Property Value
- string
The current SnapshotMetadata value.