/// <summary>
        /// Runs the project updater task. Updates cached information for all projects in the database.
        /// </summary>
        public async Task RunAsync()
        {
            var projects = _projectRepository.All();

            foreach (var project in projects)
            {
                Console.Write("Updating '{0}'... ", project.Name);
                // TODO: This can be parallelised
                await _projectUpdater.UpdateProjectAsync(project);

                Console.WriteLine("Done.");
            }
        }
Exemple #2
0
        /// <summary>
        /// Runs the project updater task. Updates cached information for all projects in the database.
        /// </summary>
        public async Task RunAsync()
        {
            var projects = _projectRepository.All();

            foreach (var project in projects)
            {
                _logger.LogInformation("Updating '{0}'... ", project.Name);
                // TODO: This can be parallelised
                await _projectUpdater.UpdateProjectAsync(project);

                _logger.LogInformation("Done.");
            }
        }