Skip to content

Interface IRpcValueTaskChannel

Namespace: DotBoxD.Services.Transport
Assembly: DotBoxD.Services.dll

Optional low-allocation transport contract for channels that can complete send/receive operations without allocating a System.Threading.Tasks.Task for each frame.

public interface IRpcValueTaskChannel : IRpcChannel, IAsyncDisposable

IRpcChannel, IAsyncDisposable

ValueTask<Payload> ReceiveValueAsync(CancellationToken ct = default)

ct CancellationToken

ValueTask<Payload>

SendValueAsync(ReadOnlyMemory<byte>, CancellationToken)

Section titled “ SendValueAsync(ReadOnlyMemory<byte>, CancellationToken)”
ValueTask SendValueAsync(ReadOnlyMemory<byte> data, CancellationToken ct = default)

data ReadOnlyMemory<byte>

ct CancellationToken

ValueTask