private async Task ProcessArtistForTimeSeriesAsync(TimeSeries timeSeries, int artistId)
        {
            IEnumerable <ArtistEvent> events = await _artistEventsRepository.GetEventsForTimeSeriesAsync(timeSeries, artistId);

            IEnumerable <ITimeSeriesValue> timeSeriesEvents = _timeSeriesEngine.ProcessTimeSeries(events, timeSeries);
            await _artistTimeSeriesCache.StoreTimeSeriesValuesAsync(timeSeriesEvents, artistId, timeSeries);
        }
Beispiel #2
0
        private async Task ProcessArtistWorkForTimeSeriesAsync(TimeSeries timeSeries, int ArtistWorkId)
        {
            int artistId = await _radiocomArtistWorkRepository.GetArtistIdForArtistWork(ArtistWorkId);

            IEnumerable <ArtistWorkEvent> events = await _ArtistWorkEventsRepository.GetEventsForTimeSeriesAsync(timeSeries, ArtistWorkId);

            IEnumerable <ITimeSeriesValue> timeSeriesEvents = _timeSeriesEngine.ProcessTimeSeries(events, timeSeries);
            await _ArtistWorkTimeSeriesCache.StoreTimeSeriesValuesAsync(timeSeriesEvents, ArtistWorkId, timeSeries, artistId);
        }