private void SaveSagaData(SubmitAgreementCommand submitAgreementCommand) { Data.BrokerId = submitAgreementCommand.BrokerId; Data.CorrelationId = submitAgreementCommand.CorrelationId; Data.AgreementId = submitAgreementCommand.AgreementId; Data.CreateDate = DateTime.Now; }
public void Handle(SubmitAgreementCommand submitAgreementCommand) { SaveSagaData(submitAgreementCommand); bus.Send( new DownloadDocumentCommand { BrokerId = submitAgreementCommand.BrokerId, AttachmentUrl = submitAgreementCommand.AgreementDocumentUrl, CorrelationId = submitAgreementCommand.CorrelationId }); }