C# Класс WP8.Async.Helpers.WebClientExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

DownloadStringTaskAsync() публичный статический Метод

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.
Результат Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

DownloadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

OpenReadTaskAsync() публичный статический Метод

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.
Результат Task

OpenReadTaskAsync() публичный статический Метод

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.
Результат Task

OpenReadTaskAsync() публичный статический Метод

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.
Результат object>>.Task

OpenReadTaskAsync() публичный статический Метод

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.
Результат object>>.Task

OpenWriteTaskAsync() публичный статический Метод

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.
Результат Task

OpenWriteTaskAsync() публичный статический Метод

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.
Результат Task

OpenWriteTaskAsync() публичный статический Метод

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.
Результат Task

OpenWriteTaskAsync() публичный статический Метод

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.
Результат object>>.Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат object>>.Task

UploadStringTaskAsync() публичный статический Метод

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
Результат Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат Task

UploadStringTaskAsync() публичный статический Метод

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
Результат Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат Task

UploadStringTaskAsync() публичный статический Метод

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.
Результат Task