开发者

Autofac: Rerouting Service Resolutions

开发者 https://www.devze.com 2023-03-10 00:06 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消