Пример #1
0
 public void Consume(SimpleStoryStarted e)
 {
     _writer.Add(e.StoryId, new StoryView
     {
         Name    = e.Name,
         StoryId = e.StoryId
     });
 }
Пример #2
0
 public void Consume(NoteAdded e)
 {
     _writer.Add(e.NoteId, new NoteView()
     {
         Text  = e.Text,
         Title = e.Title
     });
 }
Пример #3
0
 public void Consume(TagCreated e)
 {
     _writer.Add(e.TagId, new TagView()
     {
         Id   = e.TagId,
         Name = e.Tag
     });
 }