示例#1
0
 public void Consume(NoteEdited e)
 {
     _writer.UpdateOrThrow(e.NoteId, nv => nv.Text = e.NewText);
 }
 public void Consume(SimpleStoryRenamed e)
 {
     _writer.UpdateOrThrow(e.StoryId, v => v.Name = e.NewName);
 }
示例#3
0
 public void Consume(TaskRenamed e)
 {
     _writer.UpdateOrThrow(e.StoryId, sv => sv.UpdateTask(e.TaskId, n => n.Text = e.NewText));
 }
示例#4
0
 public void Consume(TagAddedToStory e)
 {
     _writer.UpdateOrThrow(e.TagId, v => v.AddStory(e.StoryId, e.StoryName));
 }
示例#5
0
 public void Consume(NoteRenamed e)
 {
     _writer.UpdateOrThrow(e.StoryId, sv => sv.UpdateNote(e.NoteId, n => n.Title = e.NewName));
 }