예제 #1
0
 public async Task Apply(UserCreated evnt)
 {
     await _store.InsertAsync(new UserView
     {
         Id    = evnt.UserId,
         Email = evnt.Email,
     });
 }
예제 #2
0
 public async Task Apply(TodoListCreated evnt)
 {
     await _store.InsertAsync(new TodoListView
     {
         Id      = evnt.ListId,
         Title   = evnt.Title,
         OwnerId = evnt.OwnerId,
         Items   = new Dictionary <string, TodoListItem>()
     });
 }