public void When(FormCreated evt) { _writer.AddOrUpdate(evt.FormId, info => { info.Id = evt.FormId; info.Name = evt.Name; info.UniqueName = evt.UniqueName; }); }
public void When(FormCreated evt) { _witer.AddOrUpdate(evt.ProjectId, forms => forms.Forms.Add(new FormInProjectInfoRecord { FormId = evt.FormId, Name = evt.Name, UniqueName = evt.UniqueName, })); }
public void When(FormCreated evt) { var projectLayoutId = DefinitionIdGenerator.NewProjectLayoutId(evt.ProjectId); _commandSender.SendCommand(new AttachFormToProjectLayout(projectLayoutId, evt.FormId, evt.ProjectId)); }
public void When(FormCreated evt) { Id = evt.FormId; }