public void Subscribe(Action <T> handler)
 {
     eventChannel.Subscribe(handler);
 }
示例#2
0
 public Subscriber(string type, IEventChannel eventChannel)
 {
     this.type         = type;
     this.eventChannel = eventChannel;
     eventChannel.Subscribe(this, type);
 }