dolittle / Bifrost

This is the stable release of Dolittle till its out of alpha->beta stages
Other
110 stars 38 forks source link

Different version on stateful and stateless aggregat roots #837

Closed rogertorhov closed 7 years ago

rogertorhov commented 7 years ago

Description

When the aggregat root has no state the version is 1.0, but should be 0.0

einari commented 7 years ago

If one does not configure a EventSourceVersions - such as Redis - the NullEventSourceVersions always returned EventSourceVersions.Zero. The fix implemented will work for NullEventSourceVersions and actually forwards the request to the EventSource, which has support for getting the version based on the events. The Redis option is an optimization option.