Registering Handlers that are not public #1035
Unanswered
gabrielciucaalbu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, guys!
Context: A modular monolith .net 8 app where each module has following class libraries:
In the Web Api project i am trying to register Wolverine Handlers. I currently only changed the login commandHandler to be an IWolverineHandler so I can play around with it.
I did read from the Wolverine documentation that by default it looks for public concrete classes, but I also found the .IsNotPublic specification, so I am a little confused.
Part of Program.cs code:
The definition of the method that returns the Assemblies of interest
The Login command message:
The Login command handler:
Whatever I have tried it still throws an exception like:
So please help me with my confusion!
Is there something that I can do to register non public Handlers?
Beta Was this translation helpful? Give feedback.
All reactions