2012年10月10日
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 委托与发布订阅者模式 8 { 9 10 /** 11 * 机器Machine为被订阅者,维修工Repairer为订阅者 12 * 工人(订阅者)注册机器的不同事件,并注册回调函数以当相应事件发生时进行处理 13 * 不同的工人可以只关注他们各自感兴趣的事件 ... 阅读全文
posted @ 2012-10-10 15:36 feichexia 阅读(2227) 评论(0) 推荐(1) 编辑