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

Replace complicated reflection-based middleware support w/ interface #4

Merged
merged 2 commits into from
Jun 22, 2023

Conversation

wjrogers
Copy link
Member

Middleware implemented as a class must implement ICommandAppMiddleware. The base library supports adding middleware by delegate, instance, or type. The extensions library enhances middleware support by automatically adding all services implementing ICommandAppMiddleware to the application.

Middleware that depends on scoped services should use CommandContext.CommandServices to access the execution scope.

Middleware implemented as a class must implement ICommandAppMiddleware.
The base library supports adding middleware by delegate, instance, or
type. The extensions library enhances middleware support by
automatically adding all services implementing ICommandAppMiddleware to
the application.
@wjrogers wjrogers merged commit 4490c87 into main Jun 22, 2023
@wjrogers wjrogers deleted the refactor-middleware branch June 22, 2023 02:42
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.

1 participant