CQRSMicroservices.Framework.EventBus.Dispatch C# (CSharp) Метод

Dispatch() публичный Метод

public Dispatch ( Event @event ) : System.Threading.Tasks.Task
@event Event
Результат System.Threading.Tasks.Task
    public virtual async Task Dispatch(Event @event)
    {
      List<QueryModelBuilder> handlers;
      if(_handlers.TryGetValue(@event.GetType(), out handlers))
      {
        await Task.WhenAll(handlers.Select(b => b.Handle(@event)));
      }
      else
      {
        throw new NotImplementedException($"No handler for eventtype {@event.GetType().FullName}");
      }
    }