C# Class Dev2.CustomControls.Progress.ProgressFileDownloader

Inheritance: IProgressFileDownloader
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Свойство Type Description
GetProgressDialogViewModel Func

Protected Properties

Свойство Type Description
ProgressDialog IProgressNotifier

Méthodes publiques

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

Méthodes protégées

Méthode Description
RehydrateDialog ( string fileName, int progressPercent, long totalBytes ) : void

Private Methods

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

public Cancel ( ) : void
Résultat void

Download() public méthode

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
Résultat void

PerformCheckSum() public méthode

public PerformCheckSum ( string tmpFileName, string checkSum ) : bool
tmpFileName string
checkSum string
Résultat bool

PerformCleanup() public static méthode

public static PerformCleanup ( IDirectory dir, string path, IFile file ) : void
dir IDirectory
path string
file IFile
Résultat void

ProgressFileDownloader() public méthode

public ProgressFileDownloader ( IDev2WebClient webClient, IFile file, ICryptoProvider cryptoProvider ) : System
webClient IDev2WebClient
file IFile
cryptoProvider ICryptoProvider
Résultat System

RehydrateDialog() protected méthode

protected RehydrateDialog ( string fileName, int progressPercent, long totalBytes ) : void
fileName string
progressPercent int
totalBytes long
Résultat void

StartUpdate() public méthode

public StartUpdate ( string fileName, bool cancelled ) : void
fileName string
cancelled bool
Résultat void

Property Details

GetProgressDialogViewModel public_oe static_oe property

public static Func GetProgressDialogViewModel
Résultat Func

ProgressDialog protected_oe property

protected IProgressNotifier ProgressDialog
Résultat IProgressNotifier