Ejemplo n.º 1
0
        public async Task ExecuteAsync(CancellationToken token)
        {
            var contactAndEntryList = await CollectAndPrepareContactMessagesForEntries();

            _logger.LogInformation($"Starting UserInvalidNotificationJob");
            foreach (var contact in contactAndEntryList)
            {
                _logger.LogInformation($"Processing user {contact.ContactMail} ...");
                _backgroundJobClient.Enqueue(() => _appDataService.CreateMessagesOfInvalidUsersForContact(contact));
            }
            _logger.LogInformation("Finished");
        }