AppUpdater.AppUpdater.checkForUpdate C# (CSharp) Method

checkForUpdate() public method

public checkForUpdate ( String _appId, String _currentAppVersionString ) : void
_appId String
_currentAppVersionString String
return void
        public void checkForUpdate(String _appId, String _currentAppVersionString)
        {
            currentAppVersionString = _currentAppVersionString;
            appId = _appId;
            currentAppVersion = new Version(currentAppVersionString);

            Thread thread = new Thread(checkForUpdateThread);
            thread.Start();

            if (pollTimeInSeconds > 0)
            {
                if (pollTimer == null)
                {
                    pollTimer = new System.Timers.Timer(pollTimeInSeconds * 1000);
                    pollTimer.Elapsed += pollTimer_ElapsedSink;
                    pollTimer.AutoReset = true;
                    pollTimer.Start();
                }
            }
        }

Usage Example

 protected void initAppUpdater()
 {
     String curVersion= System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
     appUpdater = new AppUpdater.AppUpdater();
     appUpdater.updateCheckDone += appUpdater_updateCheckDoneSink;
     appUpdater.setAppVersionInfoFile(@"http://www.bassmaniacs.com/data/appversion.xml");
     //appUpdater.setAppVersionInfoFile(@"appversion.xml");
     appUpdater.setPollTime(60 * 60);
     appUpdater.checkForUpdate("raumwiese", curVersion);
 }
All Usage Examples Of AppUpdater.AppUpdater::checkForUpdate