private void SaveSnapshot() { var state = GetState(); if (state == null) { return; } var snapshotEvent = new SnapshotOffer() { State = state }; Publish(snapshotEvent); }
private void SaveSnapshot() { var state = GetState(); if (state == null) { return; } var snapshotEvent = new SnapshotOffer { State = state, // Use the current aggregate "event version" for the snapshot version as well. Version = Version }; Publish(snapshotEvent); }