public async Task <UpdateInfo?> CheckForUpdateVersionAsync(CancellationToken cancellationToken) { var latestUpdateInfo = await _updateRepository.GetLatestAsync(cancellationToken); if (latestUpdateInfo != null && string.Compare(latestUpdateInfo.GetVersion(), Program.Version.ToString(3), StringComparison.OrdinalIgnoreCase) != 0) { return(latestUpdateInfo); } return(null); }