コード例 #1
0
 public DeleteAccountResponse Delete(DeleteAccount request)
 {
     Db.DeleteById <AccountData>(request.Id);
     using (var mqClient = _messageService.CreateMessageQueueClient())
     {
         mqClient.Publish(new AccountDeletedEvent {
             Id = request.Id
         });
     }
     return(new DeleteAccountResponse());
 }
コード例 #2
0
ファイル: DeleteAccount.cs プロジェクト: PeterKneale/Galaxy
        public DeleteAccountResponse Delete(DeleteAccount request)
        {
            var id = Db.DeleteById <AccountData>(request.Id);

            return(new DeleteAccountResponse());
        }