コード例 #1
0
ファイル: UserViewHandler.cs プロジェクト: Ontropix/CQRSalad
 public async Task Apply(UserCreated evnt)
 {
     await _store.InsertAsync(new UserView
     {
         Id = evnt.UserId,
         Email = evnt.Email,
     });
 }
コード例 #2
0
 public async Task Apply(UserCreated evnt)
 {
     await _emailSender.SendEmail(evnt.Email, EMAIL_GREETING);
 }