public async Task UpdateContent(PublishContext context, params Guid[] releaseIds) { await CacheTrees(context, releaseIds); var releases = await _releaseService.GetAsync(releaseIds); var publications = releases.Select(release => release.Publication).ToList(); var methodologyIds = publications.Where(publication => publication.MethodologyId.HasValue) .Select(publication => publication.MethodologyId.Value).Distinct(); foreach (var publication in publications) { await CachePublication(publication.Id, context, releaseIds); await CacheLatestRelease(publication, context, releaseIds); foreach (var release in releases) { await CacheFastTracks(release, context); await CacheRelease(release, context); } } foreach (var methodologyId in methodologyIds) { var methodology = await _methodologyService.Get(methodologyId); if (!methodology.Live) { await CacheMethodology(methodology.Id, context); } } }
public async Task PublishMethodologyFiles(Guid methodologyId) { var methodology = await _methodologyService.Get(methodologyId); await PublishMethodologyFiles(methodology); }