AutoFac has a Delegate Factories function, but as far as I can tell, it only works with delegates, not with interfaces.
I haven't seen anything like the Castle Typed Factory Facility in either StructureMap or Unity, but that doesn't necessarily mean they aren't there ...
The only way to imagine that something like this can be implemented for interfaces is through a dynamic proxy. Since Castle Windsor has a dynamic proxy, but few other containers have something similar, this can go a long way to explain why this feature is not ubiquitous.
Unity also offers interception capabilities, so it should have some kind of dynamic proxy implementation, but I'm sure it has nothing equivalent to Typed Factories. Compared to other containers, Unity is pretty simple.
Mark seemann
source share