Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External snapshot control #3

Open
MV10 opened this issue Oct 3, 2020 · 0 comments
Open

External snapshot control #3

MV10 opened this issue Oct 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@MV10
Copy link
Owner

MV10 commented Oct 3, 2020

Provide a public method on the event stream managers and collections to force an update of the domain object (applying new events) and output of a snapshot. This is similar to GetCopyOfState(forceRefresh: true) except that the copy method doesn't guarantee a snapshot.

Additionally, use reflection to detect a bool return from domain event Apply methods, and use that to force an immediate snapshot if the method returns true. Consider - does this imply projections should run in the middle of a sequence of Apply invocations? Make it configurable?

@MV10 MV10 added the enhancement New feature or request label Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant