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, IAsyncDisposableImplements
Section titled “Implements”Methods
Section titled “Methods”ReceiveValueAsync(CancellationToken)
Section titled “ ReceiveValueAsync(CancellationToken)”ValueTask<Payload> ReceiveValueAsync(CancellationToken ct = default)Parameters
Section titled “Parameters”Returns
Section titled “Returns”SendValueAsync(ReadOnlyMemory<byte>, CancellationToken)
Section titled “ SendValueAsync(ReadOnlyMemory<byte>, CancellationToken)”ValueTask SendValueAsync(ReadOnlyMemory<byte> data, CancellationToken ct = default)Parameters
Section titled “Parameters”data ReadOnlyMemory<byte>