예제 #1
0
        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));
        }
예제 #2
0
        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));
        }