C# Class Shellscape.UpdateManager

Class for checking for updated versions using github.
Inheritance: AsyncOperation
Exibir arquivo Open project: shellscape/Shellscape.Common Class Usage Examples

Public Methods

Method Description
CheckOnce ( ) : void
Download ( string dataPath, AsyncCompletedEventHandler callback ) : void
Replace ( string dataPath, string appPath ) : void
Start ( ) : void
Stop ( ) : void
UpdateManager ( string user, string repository, string appName, string userAgent = _userAgent ) : System

Protected Methods

Method Description
DoWork ( ) : void

Private Methods

Method Description
Check ( string data ) : void
OnPowerChange ( Object sender, Microsoft.Win32.PowerModeChangedEventArgs e ) : void
ReplaceDirectory ( DirectoryInfo source, DirectoryInfo dest ) : void
Request ( ) : void
Unzip ( string zipFile ) : void
UpdateManager ( ) : System

Method Details

CheckOnce() public method

public CheckOnce ( ) : void
return void

DoWork() protected method

protected DoWork ( ) : void
return void

Download() public method

public Download ( string dataPath, AsyncCompletedEventHandler callback ) : void
dataPath string
callback AsyncCompletedEventHandler
return void

Replace() public method

public Replace ( string dataPath, string appPath ) : void
dataPath string
appPath string
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UpdateManager() public method

public UpdateManager ( string user, string repository, string appName, string userAgent = _userAgent ) : System
user string
repository string
appName string
userAgent string
return System