Logo Orsak

RemoteMember Type

A member of a remote interface, with the codecs of its arguments and result, made once: what a proxy calls.

Constructors

Constructor Description

RemoteMember(url, format, transport, arguments, result)

Full Usage: RemoteMember(url, format, transport, arguments, result)

Parameters:
Returns: RemoteMember
url : string
format : IWireFormat
transport : IRemoteTransport
arguments : IWireArgumentsCodec
result : IWireCodec
Returns: RemoteMember

Instance members

Instance member Description

this.Async

Full Usage: this.Async

Parameters:
    args : obj array

Returns: Async<'T>
Type parameters: 'T

Calls a member that returns an Async, cancelled by the Async's own token.

args : obj array
Returns: Async<'T>

this.Call

Full Usage: this.Call

Parameters:
    args : obj array

Returns: Task<obj>

Calls the member, and returns its result as an object.

args : obj array
Returns: Task<obj>

this.Call

Full Usage: this.Call

Parameters:
    args : obj array - The arguments sent, in order, without the member's CancellationToken
    cancellationToken : CancellationToken - Cancels the call

Returns: Task<obj>

Calls the member, and returns its result as an object. Cancelling the token aborts the call, which raises OperationCanceledException, and the server's RequestAborted.

args : obj array

The arguments sent, in order, without the member's CancellationToken

cancellationToken : CancellationToken

Cancels the call

Returns: Task<obj>

this.Stream

Full Usage: this.Stream

Parameters:
    args : obj array

Returns: RemoteStream<'T>
Type parameters: 'T

Calls a member that returns a stream, of items of the member's result type.

args : obj array
Returns: RemoteStream<'T>

this.Stream

Full Usage: this.Stream

Parameters:
Returns: RemoteStream<'T>
Type parameters: 'T

Calls a member that returns a stream, of items of the member's result type, which are read as they come. Each reading of the stream is a call of its own, cancelled by either token, or by stopping it.

args : obj array
cancellationToken : CancellationToken
Returns: RemoteStream<'T>

this.Task

Full Usage: this.Task

Parameters:
    args : obj array

Returns: Task<'T>
Type parameters: 'T

Calls a member that returns a Task of a value.

args : obj array
Returns: Task<'T>

this.Task

Full Usage: this.Task

Parameters:
Returns: Task<'T>
Type parameters: 'T

Calls a member that returns a Task of a value, cancelled by the token.

args : obj array
cancellationToken : CancellationToken
Returns: Task<'T>

this.UnitTask

Full Usage: this.UnitTask

Parameters:
    args : obj array

Returns: Task

Calls a member that returns a Task without a value.

args : obj array
Returns: Task

this.UnitTask

Full Usage: this.UnitTask

Parameters:
Returns: Task

Calls a member that returns a Task without a value, cancelled by the token.

args : obj array
cancellationToken : CancellationToken
Returns: Task

this.ValueTask

Full Usage: this.ValueTask

Parameters:
    args : obj array

Returns: ValueTask<'T>
Type parameters: 'T

Calls a member that returns a ValueTask of a value.

args : obj array
Returns: ValueTask<'T>

this.ValueTask

Full Usage: this.ValueTask

Parameters:
Returns: ValueTask<'T>
Type parameters: 'T

Calls a member that returns a ValueTask of a value, cancelled by the token.

args : obj array
cancellationToken : CancellationToken
Returns: ValueTask<'T>

Type something to start searching.