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)));
 }
コード例 #2
0
 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)));
 }