Ejemplo n.º 1
0
 void OnCacheAcquireComplete(object sender, CacheAcquireCompleteEventArgs e)
 {
     if (e.Status != 0)
     {
         _completedStepVmFactory.GetViewModelInstance().Message = "Failed to acquire one of the prerequisites, you must be connected to internet.";
         _completedStepVmFactory.GetViewModelInstance().Result  = OperationResult.Failed;
     }
 }
Ejemplo n.º 2
0
        private void CacheAcquireComplete(object sender, CacheAcquireCompleteEventArgs e)
        {
            this.AddPackageTelemetry("Cache", e.PackageOrContainerId ?? String.Empty, DateTime.Now.Subtract(this.cachePackageStart).TotalMilliseconds, e.Status);

            if (e.Status < 0 && this.downloadRetries.TryGetValue(e.PackageOrContainerId, out var retries) && retries < 3)
            {
                this.downloadRetries[e.PackageOrContainerId] = retries + 1;
                switch (e.Status)
                {
                case -2147023294:     //HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT)
                case -2147024894:     //HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
                case -2147012889:     //HRESULT_FROM_WIN32(ERROR_INTERNET_NAME_NOT_RESOLVED)
                    break;

                default:
                    e.Action = BOOTSTRAPPER_CACHEACQUIRECOMPLETE_ACTION.Retry;
                    break;
                }
            }
        }
Ejemplo n.º 3
0
 private void Bootstrapper_CacheAcquireComplete(object sender, CacheAcquireCompleteEventArgs e)
 {
     HandleCancellation(e);
 }
Ejemplo n.º 4
0
 private void CacheAcquireComplete(object sender, CacheAcquireCompleteEventArgs e)
 {
     this.AddPackageTelemetry("Cache", e.PackageOrContainerId ?? String.Empty, DateTime.Now.Subtract(this.cachePackageStart).TotalMilliseconds, e.Status);
 }
Ejemplo n.º 5
0
 /// Fired when the engine has completed the acquisition of the installation sources.
 static void OnCacheAcquireComplete(object sender, CacheAcquireCompleteEventArgs e)
 {
     Logger.Instance.Trace("" + e.PackageOrContainerId + " " + e.PayloadId + " " + e.Result + " " + e.Status);
 }