C# Class Candy.Updater.CandyUpdater

アプリケーションを更新する処理を提供します。
Show file Open project: Wabyon/Candy Class Usage Examples

Public Methods

Method Description
CandyUpdater ( UpdateArgs args ) : System

CandyUpdater クラスの新しいインスタンスを初期化します。

UpdateApplicationAsync ( IProgress progress = null ) : System.Threading.Tasks.Task

進捗を報告しながら、アプリケーションを更新します。

Protected Methods

Method Description
DownloadPackageAsync ( string zipUrl, string downloadPath ) : System.Threading.Tasks.Task
GetLatestSummaryAsync ( ) : Task
UpdateFilesAsync ( FileInfo packageFile, string targetDirectoryPath ) : System.Threading.Tasks.Task

Private Methods

Method Description
DeleteFile ( string path ) : void
RemoveFilesAsync ( IEnumerable removeFiles, string applicationDirectory ) : System.Threading.Tasks.Task
UpdateFilesAsync ( ZipArchive archive, string targetDirectoryPath ) : System.Threading.Tasks.Task
WaitAsync ( ) : System.Threading.Tasks.Task
WaitProcessExitAsync ( string processName ) : System.Threading.Tasks.Task

Method Details

CandyUpdater() public method

CandyUpdater クラスの新しいインスタンスを初期化します。
public CandyUpdater ( UpdateArgs args ) : System
args UpdateArgs
return System

DownloadPackageAsync() protected method

protected DownloadPackageAsync ( string zipUrl, string downloadPath ) : System.Threading.Tasks.Task
zipUrl string
downloadPath string
return System.Threading.Tasks.Task

GetLatestSummaryAsync() protected method

protected GetLatestSummaryAsync ( ) : Task
return Task

UpdateApplicationAsync() public method

進捗を報告しながら、アプリケーションを更新します。
public UpdateApplicationAsync ( IProgress progress = null ) : System.Threading.Tasks.Task
progress IProgress
return System.Threading.Tasks.Task

UpdateFilesAsync() protected method

protected UpdateFilesAsync ( FileInfo packageFile, string targetDirectoryPath ) : System.Threading.Tasks.Task
packageFile System.IO.FileInfo
targetDirectoryPath string
return System.Threading.Tasks.Task