WebClient.OpenReadAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
OpenReadAsync(String, Object)
Begins asynchronous OpenRead operation. Opens a stream that contains data retrieved from provided URI.
Declaration
public Task<Stream> OpenReadAsync(string uri, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | URI to retrieve data from. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Stream> | Opened stream with data retrieved from provided URI. |
Remarks
HTTP method GET is used to retrieve the data.
OpenReadAsync(Uri, Object)
Begins asynchronous OpenRead operation. Opens a stream that contains data retrieved from provided URI.
Declaration
public Task<Stream> OpenReadAsync(Uri uri, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | URI to retrieve data from. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Stream> | Opened stream with data retrieved from provided URI. |
Remarks
HTTP method GET is used to retrieve the data.