码迷,mamicode.com
首页 > Windows程序 > 详细

castle windsor学习-------Container Events 容器的事件

时间:2017-03-12 13:17:40      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:asc   register   events   str   completed   ted   complete   ast   remove   

所有的事件是实现IKernelEvents 接口,已容器的Kernel属性暴露出来

1. AddedAsChildKernel

   当前的容器添加子容器或其他容器时触发

2. RemovedAsChildKernel

  和上面相反

 

ComponentModel events

3. RegistrationCompleted

   当注册完成时触发

4. ComponentRegistered

   组件注册的时候触发

 5. ComponentUnregistered

   组件被移除的时候触发

 6. ComponentModelCreated

   组件创建时触发

 

castle windsor学习-------Container Events 容器的事件

标签:asc   register   events   str   completed   ted   complete   ast   remove   

原文地址:http://www.cnblogs.com/lanpingwang/p/6537297.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!