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

EventHandler improvements #232

Merged
merged 3 commits into from
Sep 18, 2023
Merged

EventHandler improvements #232

merged 3 commits into from
Sep 18, 2023

Conversation

mhelleborg
Copy link
Member

@mhelleborg mhelleborg commented Sep 18, 2023

Summary

Adds support for new features from runtime V9.1. This includes the ability to configure event handlers to start from the latest events instead of the beginning (startFrom), as well as being able to limit the handler to events produced within a specific timeframe. (startFromTimestamp, stopAtTimestamp)

In addition this release comes with new analyzers for event handlers, making sure that incorrect use of the handlers should be a compile time issue instead of a runtime one.

Added

  • EventHandlerAttribute: startFrom (Earliest / Latest)
  • EventHandlerAttribute: startFromTimestamp - Overrides startFrom if set, ensures the handlers starts on the first event after the given timestamp. It can be in the future.
  • EventHandlerAttribute: stopAtTimestamp - If set, the event handler will stop processing when it reaches events newer than this timestamp.
  • Additional Roslyn analyzers, to ensure correct use of EventHandlers / aggregates

@mhelleborg mhelleborg merged commit c1b2d40 into master Sep 18, 2023
1 check passed
@mhelleborg mhelleborg deleted the startFrom branch September 18, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant