.NET 6.0 DI Service Registration Issue

Questions.NET 6.0 DI Service Registration Issue
sethbeckerman5 Staff asked 4 years ago

I am using a repository pattern and trying to register services in .NET 6.0 using DI.
In ,

My classes:

I am getting the following exception,

Unable to resolve service for type 'Repositories.Domain' while attempting to activate 'Repositories.ApiUserRepository'.


View on Stack Overflow