예제 #1
0
 public User Transform(UserCreated @event) =>
 new User
 {
     UserName = @event.UserName
 };
예제 #2
0
 public User Create(UserCreated e) => new User
 {
     UserName = e.UserName
 };
예제 #3
0
 public void Project(UserCreated @event, IDocumentOperations operations) =>
 operations.Store(new User {
     UserName = @event.UserName
 });