Autofac: Rerouting Service Resolutions
How do I re-route service resolutions with Autofac?
In other words: How do I divert resolutions to first check with a Common Service Locator before checking its own registrations?
The solution must work with both external resolutions (i.e. via Resolve) and internal resolutions (i.e. those used for auto-wiring of dependencies).
Thanks in advance!
EDIT: I am attempting to create a Common Service Registry. This framework will essentially aggregate potentially multiple containers as one and expose them as a CSL. The containers therefore need to consider the existence of other con开发者_JAVA技巧tainers (i.e. the aggregate CSL). This is the CSL which I would like to re-route resolutions too.
精彩评论