private void CheckUpdate(UpdateChecker updateChecker, NotificationService notificationService) { updateChecker.CompareReleaseAsync(appVersion).ContinueWith(t => { switch (t.Result.Result) { case VersionCompareValues.NeedsUpgrade: notificationService.Add(Notifications.NeedsVersionUpgrade, new List <string>() { t.Result.LatestVersion }); break; case VersionCompareValues.Error: notificationService.Add(Notifications.VersionCheckError, new List <string>() { }, NotificationTypes.Warning); break; } }); }