public void LoadStats(string packageName) { var version = packagesQuerier.Get(packageName).Version; downloadStatsCheck.Download(packageName, version) .DoTo(s => statsQuerier.Set(packageName, s)); }
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)); }