-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support generic handlers #141
Comments
In services.AddSingleton<IRequestHandler<Command<Story>, ActionResult>, Handler<Story>>(); But it doesn't seem to work in |
True, doesn't support generic messages yet. Will require a refactoring of some things so not sure that will possible. I double checked, and it is documented in the "differences from MediatR" section in the readme: https://github.com/martinothamar/Mediator?tab=readme-ov-file#6-differences-from-mediatr There is no support for manually registering message handlers, might be possible to change though, by checking the service collection before registering, though there may be more issues down the road.. The fundamental issue is that the sourcegen'd implementation is based around knowing concrete types, underlying handling functions need to namethem (it's not simply |
Closing this and keeping track of #76 |
- Fixes #61. Password redirect from `.well-known` works as it should - Works around martinothamar/Mediator#141 and blockable content API not should work, albeit in a different shape - Fixed the Gulp pipeline not bundling JS code properly - Generated new TS clients, discovered Genfic/Tool#3 - Minor changes removing dead code and switching to primary constructors
I switched from MediatR to Mediator recently, for sourcegen instead of reflections. Alas, it doesn't seem to support generic handlers, and I have a specific use case for them:
The text was updated successfully, but these errors were encountered: