public void Handle(AgreementActivated message) { Data.AgreementActivatedReceived = true; Data.DealId = message.DealId; Data.AgreementId = message.Id; Data.Commencement = message.Commencement; Data.Expiry = message.Expiry; Data.ClientId = message.ClientId; CompleteIfPossible(); }
public void AgreementActivatedDomainEventHandler(AgreementActivatedDomainEvent @event) { var agreementActivated = new AgreementActivated { Id = @event.Source.Id.Value, DealId = @event.Source.DealId, ClientId = @event.Source.Client.Id.Value, Commencement = @event.Source.Commencement, Expiry = @event.Source.Expiry }; _bus.Publish(agreementActivated); }