C# Class AppUpdater.AppUpdater

Show file Open project: stoennies/raumwiese Class Usage Examples

Protected Properties

Property Type Description
appId String
appVersionInfoFile String
currentAppVersion System.Version
currentAppVersionString String
newVersionInfo AppVersionInfo
pollTimeInSeconds System.Int64
pollTimer System.Timers.Timer

Public Methods

Method Description
AppUpdater ( ) : System
applyUpdate ( ) : void
checkForUpdate ( String _appId, String _currentAppVersionString ) : void
setAppVersionInfoFile ( String _url ) : void
setPollTime ( System.Int64 _seconds ) : void

Protected Methods

Method Description
checkForUpdateThread ( ) : void
getAppVersionInfo ( String _appVersionXMLUrl, String _appId ) : AppVersionInfo
pollTimer_ElapsedSink ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

AppUpdater() public method

public AppUpdater ( ) : System
return System

applyUpdate() public method

public applyUpdate ( ) : void
return void

checkForUpdate() public method

public checkForUpdate ( String _appId, String _currentAppVersionString ) : void
_appId String
_currentAppVersionString String
return void

checkForUpdateThread() protected method

protected checkForUpdateThread ( ) : void
return void

getAppVersionInfo() protected method

protected getAppVersionInfo ( String _appVersionXMLUrl, String _appId ) : AppVersionInfo
_appVersionXMLUrl String
_appId String
return AppVersionInfo

pollTimer_ElapsedSink() protected method

protected pollTimer_ElapsedSink ( object sender, System.Timers.ElapsedEventArgs e ) : void
sender object
e System.Timers.ElapsedEventArgs
return void

setAppVersionInfoFile() public method

public setAppVersionInfoFile ( String _url ) : void
_url String
return void

setPollTime() public method

public setPollTime ( System.Int64 _seconds ) : void
_seconds System.Int64
return void

Property Details

appId protected property

protected String appId
return String

appVersionInfoFile protected property

protected String appVersionInfoFile
return String

currentAppVersion protected property

protected Version,System currentAppVersion
return System.Version

currentAppVersionString protected property

protected String currentAppVersionString
return String

newVersionInfo protected property

protected AppVersionInfo newVersionInfo
return AppVersionInfo

pollTimeInSeconds protected property

protected Int64,System pollTimeInSeconds
return System.Int64

pollTimer protected property

protected Timer,System.Timers pollTimer
return System.Timers.Timer