3 Ways of dispatching Domain Events
Let's say you are implementing an event sourcing solution, where you send domain events to aggregates to achieve their final state. The pseudo-code might look like this.
var aggregate = new Person { Id = 1 };
foreach (var @event in domainEvents)
{
...
aschommer.hashnode.dev3 min read