protected override bool RunProcessor(ServerTask task) { var messageRepo = new MessagesRepository(DataBase); var accountRepo = new AccountsRepository(DataBase); Account targetAccount = accountRepo.GetEntity(task.ObjectId); logger.Info($"Target Account NickName {targetAccount.NickName}"); List <Message> messages = messageRepo. GetEntitiesByExpression(m => m.From == targetAccount.Id && m.FromName != targetAccount.NickName). ToList(); logger.Info($"Retrived {messages.Count} to process"); foreach (var message in messages) { logger.Info($"Updating Message {message.Id}"); message.FromName = targetAccount.NickName; messageRepo.Update(message); } return(true); }