Exemplo n.º 1
0
 private void OnMessagePushed(EventProcessedEventArgs e)
 => EventPushed?.Invoke(this, e);
Exemplo n.º 2
0
 public async Task PublishAsync <TEvent>(TEvent @event) where TEvent : IEvent => await Task.Run(() => EventPushed?.Invoke(this, new EventProcessedArgs(@event)));