开发者

Windsor OnCreated for all components

开发者 https://www.devze.com 2023-01-01 19:58 出处:网络
How would I go about globally intercepting the creation/resolution of all instances by my container? I开发者_Go百科 know I can do this individually with OnCreated on a per-component basis, but I want

How would I go about globally intercepting the creation/resolution of all instances by my container? I开发者_Go百科 know I can do this individually with OnCreated on a per-component basis, but I want to do this globally for all objects resolved by the container.

Thanks.


Try subscribing to IKernel.ComponentCreated event.

0

精彩评论

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