protected override void OnCachePackageBegin(CachePackageBeginEventArgs args) { this.Log("OnCachePackageBegin() - package: {0}, payloads to cache: {1}", args.PackageId, args.CachePayloads); string slowProgress = this.ReadPackageAction(args.PackageId, "SlowCache"); if (String.IsNullOrEmpty(slowProgress) || !Int32.TryParse(slowProgress, out this.sleepDuringCache)) { this.sleepDuringCache = 0; } else { this.Log(" SlowCache: {0}", this.sleepDuringCache); } string cancelCache = this.ReadPackageAction(args.PackageId, "CancelCacheAtProgress"); if (String.IsNullOrEmpty(cancelCache) || !Int32.TryParse(cancelCache, out this.cancelCacheAtProgress)) { this.cancelCacheAtProgress = -1; } else { this.Log(" CancelCacheAtProgress: {0}", this.cancelCacheAtProgress); } }
void OnCachePackageBegin(object sender, CachePackageBeginEventArgs e) { CurrentExecutingPackageName = e.PackageId; }
/// Fired when the engine has begun caching a specific package. static void OnCachePackageBegin(object sender, CachePackageBeginEventArgs e) { Logger.Instance.Trace("" + e.PackageId + " " + e.CachePayloads + " " + e.PackageCacheSize + " " + e.Result); }