Пример #1
0
        public void LoadStats(string packageName)
        {
            var version = packagesQuerier.Get(packageName).Version;

            downloadStatsCheck.Download(packageName, version)
            .DoTo(s => statsQuerier.Set(packageName, s));
        }
Пример #2
0
        private void EnsurePackageEntryExistsInDatabase(CreatePackageRequest package)
        {
            var existingPackage = this.redisQuerier.Get(package.Name);

            if (existingPackage == null)
            {
                redisQuerier.Set(package.Name, new Package {
                    Name = package.Name
                });
                latestPackages.Update(SystemClock.Instance.GetCurrentInstant().Ticks, package.Name);
            }
        }
 public void LoadVersionHistory(string packageName)
 {
     versionCheck.Download(packageName)
     .DoTo(version => querier.Set(packageName, version));
 }