예제 #1
0
 protected abstract void When(DomainEvent @event);
예제 #2
0
 public void ApplyAndPublish(DomainEvent @event)
 {
     _uncommittedEvents.Add(@event);
     Apply(@event);
 }
예제 #3
0
 public void Apply(DomainEvent @event)
 {
     When(@event);
 }
예제 #4
0
 public void Causes(DomainEvent @event)
 {
     _uncommittedEvents.Add(@event);
     Apply(@event);
 }