C# Class WP8.Async.Helpers.WebClientExtensions

Show file Open project: tpetrina/wp8-helpers

Public Methods

Method Description
DownloadStringTaskAsync ( this webClient, Uri address ) : Task

Asynchronously downloads the resource as a String from the URI specified.

DownloadStringTaskAsync ( this webClient, Uri address, CancellationToken token ) : Task

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests.

DownloadStringTaskAsync ( this webClient, Uri address, CancellationToken token, IProgress progress ) : Task

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests, and reports progress.

DownloadStringTaskAsync ( this webClient, Uri address, IProgress progress ) : Task

Asynchronously downloads the resource as a String from the URI specified, and reports progress.

DownloadStringTaskAsync ( this webClient, Uri address, object userToken ) : object>>.Task

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests, and reports progress.

DownloadStringTaskAsync ( this webClient, Uri address, object userToken, CancellationToken token ) : object>>.Task

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests.

DownloadStringTaskAsync ( this webClient, Uri address, object userToken, CancellationToken token, IProgress progress ) : object>>.Task

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests, and reports progress.

DownloadStringTaskAsync ( this webClient, Uri address, object userToken, IProgress progress ) : object>>.Task

Asynchronously downloads the resource as a String from the URI specified, and reports progress.

OpenReadTaskAsync ( this webClient, Uri address ) : Task

Opens a readable stream containing the specified resource as an asynchronous operation using a task object.

OpenReadTaskAsync ( this webClient, Uri address, CancellationToken token ) : Task

Opens a readable stream containing the specified resource as an asynchronous operation using a task object, and monitors cancellation requests.

OpenReadTaskAsync ( this webClient, Uri address, object userToken ) : object>>.Task

Opens a readable stream containing the specified resource as an asynchronous operation using a task object.

OpenReadTaskAsync ( this webClient, Uri address, object userToken, CancellationToken token ) : object>>.Task

Opens a readable stream containing the specified resource as an asynchronous operation using a task object, and monitors cancellation requests.

OpenWriteTaskAsync ( this webClient, Uri address ) : Task

Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.

OpenWriteTaskAsync ( this webClient, Uri address, CancellationToken token ) : Task

Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.

OpenWriteTaskAsync ( this webClient, Uri address, string method, CancellationToken token ) : Task

Opens a stream for writing data to the specified resource, using the specified method, as an asynchronous operation using a task object.

OpenWriteTaskAsync ( this webClient, Uri address, string method, object userToken, CancellationToken token ) : object>>.Task

Opens a stream for writing data to the specified resource, using the specified method, as an asynchronous operation using a task object.

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken ) : object>>.Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken, CancellationToken token ) : object>>.Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken, CancellationToken token, IProgress progress ) : object>>.Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken, IProgress progress ) : object>>.Task

UploadStringTaskAsync ( this webClient, Uri address, string data ) : Task

Uploads the specified string to the specified resource, using the specified model

UploadStringTaskAsync ( this webClient, Uri address, string data, CancellationToken token ) : Task

UploadStringTaskAsync ( this webClient, Uri address, string data, CancellationToken token, IProgress progress ) : Task

UploadStringTaskAsync ( this webClient, Uri address, string data, IProgress progress ) : Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data ) : Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, CancellationToken token ) : Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, CancellationToken token, IProgress progress ) : Task

UploadStringTaskAsync ( this webClient, Uri address, string method, string data, IProgress progress ) : Task

Method Details

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified.
public static DownloadStringTaskAsync ( this webClient, Uri address ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
return Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests.
public static DownloadStringTaskAsync ( this webClient, Uri address, CancellationToken token ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests, and reports progress.
public static DownloadStringTaskAsync ( this webClient, Uri address, CancellationToken token, IProgress progress ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
progress IProgress An object that receives progress updates.
return Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and reports progress.
public static DownloadStringTaskAsync ( this webClient, Uri address, IProgress progress ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
progress IProgress An object that receives progress updates.
return Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests, and reports progress.
public static DownloadStringTaskAsync ( this webClient, Uri address, object userToken ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
return object>>.Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests.
public static DownloadStringTaskAsync ( this webClient, Uri address, object userToken, CancellationToken token ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return object>>.Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and monitors cancellation requests, and reports progress.
public static DownloadStringTaskAsync ( this webClient, Uri address, object userToken, CancellationToken token, IProgress progress ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
progress IProgress An object that receives progress updates.
return object>>.Task

DownloadStringTaskAsync() public static method

Asynchronously downloads the resource as a String from the URI specified, and reports progress.
public static DownloadStringTaskAsync ( this webClient, Uri address, object userToken, IProgress progress ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to download.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
progress IProgress An object that receives progress updates.
return object>>.Task

OpenReadTaskAsync() public static method

Opens a readable stream containing the specified resource as an asynchronous operation using a task object.
public static OpenReadTaskAsync ( this webClient, Uri address ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to retrieve.
return Task

OpenReadTaskAsync() public static method

Opens a readable stream containing the specified resource as an asynchronous operation using a task object, and monitors cancellation requests.
public static OpenReadTaskAsync ( this webClient, Uri address, CancellationToken token ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to retrieve.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return Task

OpenReadTaskAsync() public static method

Opens a readable stream containing the specified resource as an asynchronous operation using a task object.
public static OpenReadTaskAsync ( this webClient, Uri address, object userToken ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to retrieve.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
return object>>.Task

OpenReadTaskAsync() public static method

Opens a readable stream containing the specified resource as an asynchronous operation using a task object, and monitors cancellation requests.
public static OpenReadTaskAsync ( this webClient, Uri address, object userToken, CancellationToken token ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to retrieve.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return object>>.Task

OpenWriteTaskAsync() public static method

Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.
public static OpenWriteTaskAsync ( this webClient, Uri address ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to receive the data.
return Task

OpenWriteTaskAsync() public static method

Opens a stream for writing data to the specified resource as an asynchronous operation using a task object.
public static OpenWriteTaskAsync ( this webClient, Uri address, CancellationToken token ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to receive the data.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return Task

OpenWriteTaskAsync() public static method

Opens a stream for writing data to the specified resource, using the specified method, as an asynchronous operation using a task object.
public static OpenWriteTaskAsync ( this webClient, Uri address, string method, CancellationToken token ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to receive the data.
method string The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return Task

OpenWriteTaskAsync() public static method

Opens a stream for writing data to the specified resource, using the specified method, as an asynchronous operation using a task object.
public static OpenWriteTaskAsync ( this webClient, Uri address, string method, object userToken, CancellationToken token ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri The URI of the resource to receive the data.
method string The method used to send the data to the resource. If null, the default is POST for http and STOR for ftp.
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return object>>.Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
return object>>.Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken, CancellationToken token ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return object>>.Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken, CancellationToken token, IProgress progress ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
progress IProgress An object that receives progress updates.
return object>>.Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, object userToken, IProgress progress ) : object>>.Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
userToken object A user-defined object that is passed to the method invoked when the asynchronous operation completes.
progress IProgress An object that receives progress updates.
return object>>.Task

UploadStringTaskAsync() public static method

Uploads the specified string to the specified resource, using the specified model
public static UploadStringTaskAsync ( this webClient, Uri address, string data ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
data string
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string data, CancellationToken token ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
data string
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string data, CancellationToken token, IProgress progress ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
data string
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
progress IProgress An object that receives progress updates.
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string data, IProgress progress ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
data string
progress IProgress An object that receives progress updates.
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, CancellationToken token ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, CancellationToken token, IProgress progress ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
token System.Threading.CancellationToken The token to monitor for cancellation requests. The default value is None.
progress IProgress An object that receives progress updates.
return Task

UploadStringTaskAsync() public static method

public static UploadStringTaskAsync ( this webClient, Uri address, string method, string data, IProgress progress ) : Task
webClient this The WebClient which will be used to dowload.
address System.Uri
method string
data string
progress IProgress An object that receives progress updates.
return Task