C# Class FaceDetection.Model.Updater.UpdateHandler

Handler for auto updates of the application
Afficher le fichier Open project: PkInfRemi/FaceDetectionApp Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
GetAssemblyVersion ( ) : System.Version
ParseVersion ( string versionText ) : System.Version
StartUpdate ( ) : void

Method Details

CancelDownload() public méthode

Cancels the download.
public CancelDownload ( ) : void
Résultat void

DownloadUpdate() public méthode

Downloads the update.
public DownloadUpdate ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

IsUpdateAvailable() public méthode

Determines whether an update is available.
public IsUpdateAvailable ( ) : Task
Résultat Task

OnUpdateDownloadCompleted() protected méthode

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

OnUpdateDownloadProgressChanged() protected méthode

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

UpdateHandler() public méthode

Initializes a new instance of the UpdateHandler class.
public UpdateHandler ( ) : System
Résultat System