예제 #1
0
파일: Tor.cs 프로젝트: injekt666/Tor4NET
        public async Task <bool> CheckForUpdates()
        {
            var currentVersion = await GetCurrentVersion();

            if (currentVersion == string.Empty)
            {
                return(true);
            }

            var latestVersion = await torUpdater.GetLatestVersion();

            return(currentVersion != latestVersion);
        }
예제 #2
0
        public async Task <bool> CheckForUpdates()
        {
            var currentVersion = await GetCurrentVersion();

            if (currentVersion == string.Empty)
            {
                return(true);
            }

            var(_, latestVersion) = await torUpdater.GetLatestVersion();

            if (latestVersion == string.Empty)
            {
                return(false);
            }

            return(!currentVersion.Equals(latestVersion, StringComparison.Ordinal));
        }