protected void Apply(IEventMessage <TestEvent1> ev)
 {
     AppliedEvents.Add(ev);
 }
 protected async Task Apply(IEventMessage <TestEvent2> ev)
 {
     AppliedEvents.Add(ev);
 }
 public virtual void Apply(IEventMessage <TestEvent2> ev, Guid aggregateId)
 {
     AppliedEvents.Add(ev);
 }
Beispiel #4
0
        public void Update(UpdateCompanyCommand command)
        {
            Name = command.Name;

            AppliedEvents.Add(new CompanyUpdatedEvent(this, command.MessageId));
        }
Beispiel #5
0
 public void Delete(DeleteCompanyCommand command)
 {
     AppliedEvents.Add(new CompanyDeletedEvent(this, command.MessageId));
 }
Beispiel #6
0
        public void Update(UpdatePersonaCommand command)
        {
            Name = command.Name;

            AppliedEvents.Add(new PersonaUpdatedEvent(this, command.MessageId));
        }
Beispiel #7
0
 public void Delete(DeletePersonaCommand command)
 {
     AppliedEvents.Add(new PersonaDeletedEvent(this, command.MessageId));
 }