Beispiel #1
0
 protected override Notification CreateCompletionNotification() => new ProgressCompletionNotification
 {
     Text      = @"Update ready to install. Click to restart!",
     Activated = () =>
     {
         UpdateManager.RestartAppWhenExited();
         game.GracefullyExit();
         return(true);
     }
 };
Beispiel #2
0
 protected override Notification CreateCompletionNotification() => new ProgressCompletionNotification
 {
     Text      = @"Update ready to install. Click to restart!",
     Activated = () =>
     {
         // Squirrel returns execution to us after the update process is started, so it's safe to use Wait() here
         UpdateManager.RestartAppWhenExited().Wait();
         game.GracefullyExit();
         return(true);
     }
 };
Beispiel #3
0
 protected override Notification CreateCompletionNotification()
 {
     return(new ProgressCompletionNotification
     {
         Text = @"Update ready to install. Click to restart!",
         Activated = () =>
         {
             updateManager.PrepareUpdate();
             game.GracefullyExit();
             return true;
         }
     });
 }
 protected override Notification CreateCompletionNotification()
 {
     return(new ProgressCompletionNotification
     {
         Text = @"Update ready to install. Click to restart!",
         Activated = () =>
         {
             updateManager.PrepareUpdateAsync()
             .ContinueWith(_ => updateManager.Schedule(() => game.GracefullyExit()));
             return true;
         }
     });
 }