Listing 3 shows a simple event receiver.
清单3显示了一个简单事件接收者。
Vertical causality occurs when the event publisher resides on a different layer than the event receiver.
当事件发布者与事件接收者位于不同层时,发生垂直因果关系。
If new event types are added, the event receiver automatically begins to receive them as they are published.
如果添加新的事件类型,则事件接收者会在它们发布时自动接收它们。
应用推荐