示例#1
0
 private void EventQueue_EventPushed(object sender, EventProcessedEventArgs e)
 => (from eh in this.eventHandlers
         where eh.CanHandle(e.Event)
     select eh).ToList().ForEach(async eh => await eh.HandleAsync(e.Event));
示例#2
0
 private void OnMessagePushed(EventProcessedEventArgs e) => this.EventPushed?.Invoke(this, e);