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