public async Task <int> GetLatestVersion(string academicYear, int version, CancellationToken cancellationToken) { return(await _apiCacheRetrieval.GetOrCreate( string.Concat(CacheEntry, academicYear), _configuration.CacheExpiration, GetVersionFromFiles(academicYear, version, cancellationToken))); }
public async Task <bool> IsLatestVersion(string academicYear, Version version, CancellationToken cancellationToken) { return(await _apiCacheRetrieval .GetOrCreate(string.Concat( CacheEntry, academicYear), _configuration.CacheExpiration, CheckApplicationVersion(academicYear, version, cancellationToken))); }