Ejemplo n.º 1
0
 protected override void Map(IEventMapping mapping)
 {
     //Expected streamId = Question_UserName
     mapping.For <QuestionCreated>((meta, e) => e.QuestionId.ToString(), Apply);
     mapping.For <AnswerCreated>((created) => string.Empty, (created, state) => Task.CompletedTask);
     mapping.For <TagCreated>(created => string.Empty, (created, state) => Task.CompletedTask);
 }
Ejemplo n.º 2
0
 protected override void Map(IEventMapping mapping)
 {
     mapping.For <TagCreated>((meta, e) => e.QuestionId.ToString(), Apply);
 }
Ejemplo n.º 3
0
 protected override void Map(IEventMapping mapping)
 {
     mapping.For <BookRated>((meta, e) => e.Title, Apply);
 }
Ejemplo n.º 4
0
 protected override void Map(IEventMapping mapping)
 {
     mapping.For <ActionOccured>((meta, e) => e.Name + meta.StreamId, Apply);
 }