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

Clarification of projectionVersion scenario for RaiseSideEffects method documentation #3633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/events/projections/aggregate-projections.md
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ public class TripProjection: SingleStreamProjection<Trip>
A couple important facts about this new functionality:

- The `RaiseSideEffects()` method is only called during _continuous_ asynchronous projection execution, and will not
be called during projection rebuilds or `Inline` projection usage
be called during projection rebuilds, bumping of the `ProjectionVersion` or `Inline` projection usage.
- Events emitted during the side effect method are _not_ immediately applied to the current projected document value by Marten
- You _can_ alter the aggregate value or replace it yourself in this side effect method to reflect new events, but the onus
is on you the user to apply idempotent updates to the aggregate based on these new events in the actual handlers for
Expand Down