public async Task PopulateAsync(CancellationToken cancellationToken) { await Task.WhenAll( _internalDataCachePopulationService.PopulateAsync(cancellationToken), _referenceDataCachePopulationService.PopulateAsync(cancellationToken), _fundingContextPopulationService.PopulateAsync(cancellationToken), _fileDataCachePopulationService.PopulateAsync(cancellationToken)) .ConfigureAwait(false); }
public async Task PopulateAsync(CancellationToken cancellationToken) { await _messageCachePopulationService.PopulateAsync(cancellationToken); await Task.WhenAll( _fileDataCachePopulationService.PopulateAsync(cancellationToken), _internalDataCachePopulationService.PopulateAsync(cancellationToken), _externalDataCachePopulationService.PopulateAsync(cancellationToken)); }