public async Task PopulateAsync(CancellationToken cancellationToken) { var externalDataCache = (ExternalDataCache)_externalDataCache; externalDataCache.LearningDeliveries = await _larsLearningDeliveryDataRetrievalService.RetrieveAsync(cancellationToken); externalDataCache.Frameworks = await _larsFrameworkDataRetrievalService.RetrieveAsync(cancellationToken); externalDataCache.ULNs = new HashSet <long>(await _ulnDataRetrievalService.RetrieveAsync(cancellationToken)); externalDataCache.Postcodes = new HashSet <string>(await _postcodesDataRetrievalService.RetrieveAsync(cancellationToken)); externalDataCache.Organisations = await _organisationsDataRetrievalService.RetrieveAsync(cancellationToken); externalDataCache.ValidationErrors = await _validationErrorsDataRetrievalService.RetrieveAsync(cancellationToken); }
public async Task PopulateAsync(CancellationToken cancellationToken) { var externalDataCache = (ExternalDataCache)_externalDataCache; externalDataCache.ValidationErrors = await _validationErrorsDataRetrievalService.RetrieveAsync(cancellationToken); }