Let's say I have an interface called IBaseInterface.
Then there are two interfaces that inherit this interface:
IFirstConcreteInterface : IBaseInterface
and
ISecondConcreteInterface : IBaseInterface
Now I have two classes that implement the concrete interfaces:
FirstConcreteClass : IFirstConcreteInterface
and
SecondConcreteClass : ISecondConcreteInterface
The instances of these classes have been registered with autofac at Startup.cs.
Here's my question:
How can I get the instances of all classes whose interfaces inherit from IBaseInterface (instance of FirstConcreteClass and SecondConcreteClass in this example) by using autofac? I don't need them in the Startup.cs but in a different class.
Thank you very much.