I have an interface ISomething with a method Start.
I want to get all implementations of this interface (in multiple assemblies, the main one and all referenced ones) and call the Start method on application start.
How can I do this with Autofac 2.4.4.705?
I have an interface ISomething with a method Start. I want to get all
Share
you can resolve
and call Start for each of them
Forgot to mention, that you should first register all implementations of ISomething.
Where “assemblies” is an array of assemblies you want to register from.