I am new at Domain Driven and CQRS and confused a bit about event handler mechanism.
Domian events are firing an event occured. For example an Account created.
public class Account: AggregateRoot{
public Account(Guid id)
{
Apply(new AccountCreatedEvent { AggregateRootId = id });
}
}
public class AccountCratedEvent: DomainEvent{
}
I think this is an inner event mechanism for Domain. So I can not send an email to new account owner. Because new account has not saved to database yet. So should I create a new event handler to populate after database savings?