public void ProcessQueueMessage([QueueTrigger("%azure-queue-accessdata%")] string message, TextWriter log) { try { UserWalletManager userWalletManager = new UserWalletManager(); MailManager mailManager = new MailManager(); Notification notification = userWalletManager.GetNotification(message); var user = aspNetUserManager.GetById(notification.IdUser); var wallet = Task.Run(() => NethereumHelper.CreateUserWallet()).Result; user.TokenAddress = wallet.blobname; user.WalletAddress = wallet.walletaddress; aspNetUserManager.Update(user); MailMessage mailMessage = new MailMessage() { Body = notification.MailContent, Destination = user.Email, Subject = "Confirm your email" }; mailManager.SendAsync(mailMessage); } catch (Exception ex) { var messageException = telemetria.MakeMessageException(ex, System.Reflection.MethodBase.GetCurrentMethod().Name); telemetria.Critical(messageException); } }