Propagate ResetContext in ReplayToken #2307
Labels
Priority 3: Could
Low priority. Issues that are nice to have but have a straightforward workaround.
Status: Resolved
Use to signal that work on this issue is done.
Type: Feature
Use to signal an issue is completely new to the project.
Milestone
Feature Description
When resetting a projection the user can supply a
ResetContext
object of their choosing. This is used to invoke the reset handlers in the processing group.It would be great if this context can also be carried to event handlers during replay. We can achieve this by saving the
ResetContext
in theReplayToken
that the user can then extract.In addition, we should add a
ParameterResolverFactory
that allows theResetContext
to be passed to the handling method as a parameter.Possible Workarounds
Users can create their own table and query this at runtime for the information. This requires additional queries for each message handled, while the data is already known at the time the replay is triggered.
The text was updated successfully, but these errors were encountered: