When there are aggregates with a snapshot, and you call the method FindAggregateAsync(id, ignoreSnapshots, version) with ignoreSnapshots set to false, the TextFileSnapshotStore.FindLastSnapshotAsync method fails.
The logic for getting the last snapshot of an aggregate doesn't check if the snapshot is for the relevant aggregate.
When there are aggregates with a snapshot, and you call the method
FindAggregateAsync(id, ignoreSnapshots, version)
withignoreSnapshots
set tofalse
, theTextFileSnapshotStore.FindLastSnapshotAsync
method fails. The logic for getting the last snapshot of an aggregate doesn't check if the snapshot is for the relevant aggregate.