C# Class Dev2.CustomControls.Progress.ProgressFileDownloader

Inheritance: IProgressFileDownloader
ファイルを表示 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Properties

Property Type Description
GetProgressDialogViewModel Func

Protected Properties

Property Type Description
ProgressDialog IProgressNotifier

Public Methods

Method Description
Cancel ( ) : void
Download ( Uri address, string tmpFileName, bool dontStartUpdate, string fileName, string checkSum ) : void

Downloads the resource at the URI specified by in the address parameter. When the download completes successfully, the downloaded file is named fileName on the local computer.

PerformCheckSum ( string tmpFileName, string checkSum ) : bool
PerformCleanup ( IDirectory dir, string path, IFile file ) : void
ProgressFileDownloader ( IDev2WebClient webClient, IFile file, ICryptoProvider cryptoProvider ) : System
StartUpdate ( string fileName, bool cancelled ) : void

Protected Methods

Method Description
RehydrateDialog ( string fileName, int progressPercent, long totalBytes ) : void

Private Methods

Method Description
DialogViewModel ( Window owner, System.Action cancelAction ) : IProgressNotifier
OnDownloadFileCompleted ( AsyncCompletedEventArgs args, string fileName ) : void
OnDownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs args ) : void
ProgressFileDownloader ( Window owner ) : System
ShutdownAndInstall ( string fileName ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

Download() public method

Downloads the resource at the URI specified by in the address parameter. When the download completes successfully, the downloaded file is named fileName on the local computer.
public Download ( Uri address, string tmpFileName, bool dontStartUpdate, string fileName, string checkSum ) : void
address System.Uri
tmpFileName string
dontStartUpdate bool
fileName string
checkSum string
return void

PerformCheckSum() public method

public PerformCheckSum ( string tmpFileName, string checkSum ) : bool
tmpFileName string
checkSum string
return bool

PerformCleanup() public static method

public static PerformCleanup ( IDirectory dir, string path, IFile file ) : void
dir IDirectory
path string
file IFile
return void

ProgressFileDownloader() public method

public ProgressFileDownloader ( IDev2WebClient webClient, IFile file, ICryptoProvider cryptoProvider ) : System
webClient IDev2WebClient
file IFile
cryptoProvider ICryptoProvider
return System

RehydrateDialog() protected method

protected RehydrateDialog ( string fileName, int progressPercent, long totalBytes ) : void
fileName string
progressPercent int
totalBytes long
return void

StartUpdate() public method

public StartUpdate ( string fileName, bool cancelled ) : void
fileName string
cancelled bool
return void

Property Details

GetProgressDialogViewModel public_oe static_oe property

public static Func GetProgressDialogViewModel
return Func

ProgressDialog protected_oe property

protected IProgressNotifier ProgressDialog
return IProgressNotifier