C# Class FaceDetection.Model.Updater.UpdateHandler

Handler for auto updates of the application
Mostrar archivo Open project: PkInfRemi/FaceDetectionApp Class Usage Examples

Public Methods

Method Description
CancelDownload ( ) : void

Cancels the download.

DownloadUpdate ( ) : System.Threading.Tasks.Task

Downloads the update.

IsUpdateAvailable ( ) : Task

Determines whether an update is available.

UpdateHandler ( ) : System

Initializes a new instance of the UpdateHandler class.

Protected Methods

Method Description
OnUpdateDownloadCompleted ( UpdateDownloadCompletedArgs e ) : void

Called when the update download was completed.

OnUpdateDownloadProgressChanged ( UpdateDownloadProgressChangedArgs e ) : void

Called when the update download progress changed.

Private Methods

Method Description
GetAssemblyVersion ( ) : System.Version
ParseVersion ( string versionText ) : System.Version
StartUpdate ( ) : void

Method Details

CancelDownload() public method

Cancels the download.
public CancelDownload ( ) : void
return void

DownloadUpdate() public method

Downloads the update.
public DownloadUpdate ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

IsUpdateAvailable() public method

Determines whether an update is available.
public IsUpdateAvailable ( ) : Task
return Task

OnUpdateDownloadCompleted() protected method

Called when the update download was completed.
protected OnUpdateDownloadCompleted ( UpdateDownloadCompletedArgs e ) : void
e UpdateDownloadCompletedArgs The args.
return void

OnUpdateDownloadProgressChanged() protected method

Called when the update download progress changed.
protected OnUpdateDownloadProgressChanged ( UpdateDownloadProgressChangedArgs e ) : void
e UpdateDownloadProgressChangedArgs The args.
return void

UpdateHandler() public method

Initializes a new instance of the UpdateHandler class.
public UpdateHandler ( ) : System
return System