public async Task <CheckForUpdatesResult> CheckForUpdatesAsync() { // Get versions var versions = await _resolver.GetVersionsAsync().ConfigureAwait(false); var lastVersion = versions.Max(); var canUpdate = lastVersion != null && _updatee.Version < lastVersion; return(new CheckForUpdatesResult(versions, lastVersion, canUpdate)); }
public async Task <CheckForUpdatesResult> CheckForUpdatesAsync() { // Ensure that the current state is valid for this operation EnsureNotDisposed(); // Get versions var versions = await _resolver.GetVersionsAsync().ConfigureAwait(false); var lastVersion = versions.Max(); var canUpdate = lastVersion != null && _updatee.Version < lastVersion; return(new CheckForUpdatesResult(versions, lastVersion, canUpdate)); }