C# Class Dev2.Helpers.Dev2WebClient

Inheritance: IDev2WebClient
显示文件 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
CancelAsync ( ) : void
Dev2WebClient ( WebClient webClient ) : System
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DownloadFileAsync ( Uri address, string fileName, string userToken ) : void
DownloadString ( string address ) : string

Private Methods

Method Description
_webClient_DownloadDataCompleted ( object sender, DownloadDataCompletedEventArgs e ) : void

Method Details

CancelAsync() public method

public CancelAsync ( ) : void
return void

Dev2WebClient() public method

public Dev2WebClient ( WebClient webClient ) : System
webClient System.Net.WebClient
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

DownloadFileAsync() public method

public DownloadFileAsync ( Uri address, string fileName, string userToken ) : void
address System.Uri
fileName string
userToken string
return void

DownloadString() public method

public DownloadString ( string address ) : string
address string
return string