public async Task <bool> Handle(AccountCreatedIntegrationEvent @event) { var notification = new Not( "Conta criada com sucesso!", "Parabéns, você concluiu seu cadastro com sucesso! " + "Deposite um valor inicial e comece os trabalhos hoje mesmo :)"); var notificationUser = new NotificationUser(@event.UserId, notification); notificationUser.Send(); await _notificationRepository.CreateNotificationUserAsync(notificationUser); await _notificationRepository.Commit(); await _hubContext.Clients.All.Notify($"Conta {@event.AccountNumber} criada com sucesso!"); return(true); }