Minimal DI Registration w/o AssemblyScanning #880
-
For a .NET Core project that I am working on, we are using Mediatr, but we have our own mechanism for registering dependencies using SourceGenerators. What is the minimum registrations to get Mediatr working without using the Mediatr DI package? |
Beta Was this translation helpful? Give feedback.
Answered by
jbogard
Mar 15, 2023
Replies: 1 comment 1 reply
-
I'm not sure what your source generators do, but you can see the difference between what you have and this: https://github.com/jbogard/MediatR/blob/master/src/MediatR/Registration/ServiceRegistrar.cs |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TorreyGarland
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what your source generators do, but you can see the difference between what you have and this: https://github.com/jbogard/MediatR/blob/master/src/MediatR/Registration/ServiceRegistrar.cs