示例#1
0
 protected internal override void Define()
 {
     On((Attach x) => observer = x.Observer);
     On((Publish x) => observer.Notify(new Notification {
         Text = x.Text
     }));
 }
示例#2
0
 void On(Publish x) => observer.Notify(new Notification {
     Text = x.Text
 });
示例#3
0
 public static void Notify <TEvent>(this ObserverRef @ref, TEvent @event) where TEvent : Event
 {
     @ref.Notify(@event);
 }