Logo Orsak

IRemoteTransport Type

Sends a request and returns the body of a successful response, raising RemoteCallException otherwise, or OperationCanceledException once the token is cancelled, which aborts the request.

Instance members

Instance member Description

this.Post

Full Usage: this.Post

Parameters:
    url : string
    contentType : string
    body : byte array
    cancellationToken : CancellationToken

Returns: Task<byte array>
Modifiers: abstract
url : string
contentType : string
body : byte array
cancellationToken : CancellationToken
Returns: Task<byte array>

this.PostStream

Full Usage: this.PostStream

Parameters:
    url : string
    contentType : string
    body : byte array
    cancellationToken : CancellationToken

Returns: Task<IRemoteBody>
Modifiers: abstract

Sends a request and returns the body of a successful response as it comes, for a stream, raising RemoteCallException otherwise. The token aborts the request, and reading its body, until the body is disposed.

url : string
contentType : string
body : byte array
cancellationToken : CancellationToken
Returns: Task<IRemoteBody>

Type something to start searching.