I am using .net core for the Dependency Injection to instantiated the class.
class A : InterfaceA { } and class B : InterfaceA { }
StartUp.cs:
_service.AddTransient(InterfaceA, classA)
_service.AddTransient(InterfaceA, classB)
Controller.cs:
public ConstructorA (InterfaceA service) { }
How to tell it uses classA or classB in the ConstructorA?