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

Add ApplicationConfigurer.Handlers(). #170

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Add ApplicationConfigurer.Handlers(). #170

merged 3 commits into from
Oct 14, 2024

Conversation

jmalloc
Copy link
Member

@jmalloc jmalloc commented Oct 14, 2024

What change does this introduce?

This PR adds a Handlers() method to AggregateConfigurer and deprecates the existing RegisterAggregate(), RegisterProcess(), RegisterIntegration() and RegisterProjection() methods.

Why make this change?

This change allows for new handler types and options to be added in the future without introducing a compile-time BC break to engine implementations. This is part of a broader attempt to reduce the chance of engine-facing BC breakages so that the dogma module can be versioned according to semver as it applies to application developers.

For precedent, see the addition of the Routes() method for handlers in v0.12.0.

Is there anything you are unsure about?

No

What issues does this relate to?

#169

@jmalloc
Copy link
Member Author

jmalloc commented Oct 14, 2024

See https://github.com/dogmatiq/example/compare/handlers-method for updated example.

@jmalloc jmalloc merged commit 49c1bac into main Oct 14, 2024
5 checks passed
@jmalloc jmalloc deleted the handlers-method branch October 14, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants