Пример #1
0
 private async void SetUpgradeVersionAsync()
 {
     if (!_upgradeVersion.HasValue)
     {
         try {
             await _provider.UpdatePackageInfoAsync(this, CancellationToken.None);
         } catch (Exception ex) {
             if (ex.IsCriticalException())
             {
                 throw;
             }
             Debug.Fail("Unhandled exception: " + ex.ToString());
             // Nowhere else to report the exception, so just swallow it to
             // avoid bringing down the whole process.
         }
     }
 }