A concrete event class — constructible, and carrying the static eventName that identifies it.
eventName
Newable<DomainEvent> alone is not enough for Handle: a constructor type says nothing about statics, so event.eventName would not typecheck.
Newable<DomainEvent>
event.eventName
A concrete event class — constructible, and carrying the static
eventNamethat identifies it.Newable<DomainEvent>alone is not enough for Handle: a constructor type says nothing about statics, soevent.eventNamewould not typecheck.