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

Use source generator for mapping HTTP API to command handlers #344

Open
alexeyzimarev opened this issue Jun 16, 2024 · 2 comments
Open

Use source generator for mapping HTTP API to command handlers #344

alexeyzimarev opened this issue Jun 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@alexeyzimarev
Copy link
Contributor

Eventuous supports mapping command handlers in command services to HTTP API endpoints. It removes quite a lot of boilerplate code using minimal API feature of latest .NET versions.

However, the feature uses reflections to resolve the service for each API call. Command handler delegates are cached, but it's still not exceptionally fast and also breaks AOT-compatibility because of use of reflections.

It should be relatively straightforward to replace reflections with generated code.

@alexeyzimarev alexeyzimarev added Improvement enhancement New feature or request and removed Improvement labels Jun 16, 2024
@alexeyzimarev
Copy link
Contributor Author

Moving it to after 0.15

Copy link

linear bot commented Aug 16, 2024

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