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

Improved Middleware Strategy #41

Closed
15 tasks done
jeremydmiller opened this issue Sep 28, 2022 · 1 comment
Closed
15 tasks done

Improved Middleware Strategy #41

jeremydmiller opened this issue Sep 28, 2022 · 1 comment

Comments

@jeremydmiller
Copy link
Member

jeremydmiller commented Sep 28, 2022

The big goal is to make the creation and usage of middleware easier.

Test cases

  • Instance methods on middleware is scoped
  • Static methods
  • Synchronous "before"
  • Asynchronous "before"
  • Synchronous "after"
  • Asynchronous "after"
  • No filter
  • User-defined filter
  • Inferred filter by message applicability
  • Use multiple middleware on one handler
  • Add middleware by attribute too!
  • Can use services
  • Use objects built by middleware
  • Dispose middleware objects that are created
  • Filter model?
@jeremydmiller
Copy link
Member Author

Might build it first in Wolverine, but see JasperFx/lamar#354

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

No branches or pull requests

1 participant