C# Class csShared.Utils.DownloadCache

显示文件 Open project: TNOCS/csTouch Class Usage Examples

Public Methods

Method Description
CalculateMD5Hash ( string input ) : string
DownloadCache ( ) : System
DownloadFile ( Uri u ) : void
DownloadFile ( Uri u, bool refresh ) : void
DownloadString ( Uri u ) : void
DownloadString ( Uri u, bool refresh ) : void
ExistsLocal ( Uri u ) : bool
LocalUrl ( Uri u ) : string

Private Methods

Method Description
GetFile ( string e ) : string
bw_DoWork ( object sender, DoWorkEventArgs e ) : void
wc_DownloadDataCompleted ( object sender, DownloadDataCompletedEventArgs e ) : void
wc_DownloadStringCompleted ( object sender, DownloadStringCompletedEventArgs e ) : void

Method Details

CalculateMD5Hash() public method

public CalculateMD5Hash ( string input ) : string
input string
return string

DownloadCache() public method

public DownloadCache ( ) : System
return System

DownloadFile() public method

public DownloadFile ( Uri u ) : void
u System.Uri
return void

DownloadFile() public method

public DownloadFile ( Uri u, bool refresh ) : void
u System.Uri
refresh bool
return void

DownloadString() public method

public DownloadString ( Uri u ) : void
u System.Uri
return void

DownloadString() public method

public DownloadString ( Uri u, bool refresh ) : void
u System.Uri
refresh bool
return void

ExistsLocal() public method

public ExistsLocal ( Uri u ) : bool
u System.Uri
return bool

LocalUrl() public method

public LocalUrl ( Uri u ) : string
u System.Uri
return string