Пример #1
0
 private void OnUpdateAvailable(object sender, ProductUpdateAvailableEventArgs e)
 {
     // this event handler will be invoked on background thread. Has to use Dispatcher to show update bar.
     NuGetUIThreadHelper.JoinableTaskFactory.Run(async() =>
     {
         await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
         ShowUpdateBar(e.CurrentVersion, e.NewVersion);
     });
 }
Пример #2
0
 private void OnUpdateAvailable(object sender, ProductUpdateAvailableEventArgs e)
 {
     // this event handler will be invoked on background thread. Has to use Dispatcher to show update bar.
     Dispatcher.BeginInvoke(new Action <Version, Version>(ShowUpdateBar), e.CurrentVersion, e.NewVersion);
 }
 private void OnUpdateAvailable(object sender, ProductUpdateAvailableEventArgs e)
 {
     // this event handler will be invoked on background thread. Has to use Dispatcher to show update bar.
     Dispatcher.BeginInvoke(new Action<Version, Version>(ShowUpdateBar), e.CurrentVersion, e.NewVersion);
 }