Exemplo n.º 1
0
 void IInstallationProgressChangedCallback.Invoke(IInstallationJob installationJob, IInstallationProgressChangedCallbackArgs callbackArgs)
 {
     if (this.showProgress)
     {
         IInstallationProgress progress = callbackArgs.Progress;
         Console.WriteLine("WUA_InstallationProgress:{0}|{1}|{2}",
                           progress.CurrentUpdateIndex + 1,
                           progress.CurrentUpdatePercentComplete,
                           progress.PercentComplete);
     }
 }
 public void Invoke(IInstallationJob installationJob, IInstallationProgressChangedCallbackArgs callbackArgs)
 {
     this.Progress = callbackArgs.Progress;
 }
Exemplo n.º 3
0
 internal static string IInstallationProgressToString(IInstallationProgress p)
 {
     return($"{nameof(p.PercentComplete)}:{p.PercentComplete}"
            + $", {nameof(p.CurrentUpdateIndex)}:{p.CurrentUpdateIndex}"
            + $", {nameof(p.CurrentUpdatePercentComplete)}:{p.CurrentUpdatePercentComplete}");
 }