public async Task ExecuteAsync(CancellationToken cancellationToken) { _logger.Log(LogLevel.Information, new EventId((int)LogEventId.ScheduledTasks), $"Beginning task: {this.GetType().Name}"); var allApps = await _steamService.GetAllAppsAsync(); _logger.Log(LogLevel.Information, new EventId((int)LogEventId.ScheduledTasks), $"Apps found: {allApps.Count}"); var gameDetails = allApps.Select(a => new GameDetails { Id = a.AppId, Name = a.Name, LastUpdated = DateTime.MinValue }); await _searchService.AddAppsAsync(gameDetails); _logger.Log(LogLevel.Information, new EventId((int)LogEventId.ScheduledTasks), $"Finishing task: {GetType().Name}"); }