What is your product version? -> 8.1 What is your product type (Angular or MVC)? -> Angular What is product framework type (.net framework or .net core)? -> .net core
I need to use the same class (IIdeasMessageRepository) in two different modules.
The above image shows where IIdeasMessageRepository is originally registered for dependency injection.
But, I also need to use IIdeasMessageRepository in this project.
When I don't register the dependency in this module I get this exception.
Once I register the depedency.
I get this exception instead and sometimes I get the duplicate registration error.
How can I use/register the same class in two different modules without getting an exception?