public async Task Execute()
        {
            var data = new List <ConnpassEventDataEntity>();

            for (var i = 0; i < 9; i++)
            {
                var result = await _connpassReadOnlyWebsiteDataRepository.LoadConnpassData(i);

                result.ToList().ForEach(item => data.Add(item));
            }
            await _connpassDatabaseRepository.SaveEventData(data);
        }
Exemple #2
0
        public async Task Execute(int startPosition = 1)
        {
            var loadResult = await _connpassDataStore.LoadSpecificConnpassDataAsync(startPosition);

            await _connpassDatabaseRepository.SaveEventData(loadResult);
        }