Exemplo n.º 1
0
        public static async Task PublishAsync(this IEventBus bus, IAggregateRoot aggregateRoot)
        {
            await bus.TriggerAsync(aggregateRoot.Events);

            aggregateRoot.EmptyEvents();
        }