Example
MyConstruction(IEnumberable<IMyInterface> myInterfaces)
{
}
where I have a couple of classes that implement IMyInterface.
Example
MyConstruction(IEnumberable<IMyInterface> myInterfaces)
{
}
where I have a couple of classes that implement IMyInterface.
I actually found a blog post describing this issue. It isn't exactly what I was looking for because I would rather not have to explicitly list the implementations.
You don't have to declare them explicitly. Take advantage of the scanning feature:
Scan(x =>
{
x.TheCallingAssembly(); // or specify additional assemblies to scan
x.AddAllTypesOf<IMyInterface>();
});