public static async Task PublishAsync(this IEventBus bus, IAggregateRoot aggregateRoot) { await bus.TriggerAsync(aggregateRoot.DomainEvents); aggregateRoot.EmptyDomainEvents(); }
public static async Task PublishAsync(this IEventBus bus, IAggregateRoot aggregateRoot) { await bus.TriggerAsync(aggregateRoot.DomainEvents); aggregateRoot.EmptyDomainEvents(); }