Table of Contents

Delegate ResponseDecodeFunc<T>

Namespace
IceRpc.Slice.Operations
Assembly
IceRpc.Slice.dll

Represents a delegate that decodes the return value from a Slice-encoded response.

public delegate ValueTask<T> ResponseDecodeFunc<T>(IncomingResponse response, OutgoingRequest request, ISliceProxy sender, CancellationToken cancellationToken)

Parameters

response IncomingResponse

The incoming response.

request OutgoingRequest

The outgoing request.

sender ISliceProxy

The proxy that sent the request.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask<T>

A value task that contains the decoded return value.

Type Parameters

T

The type of the return value to read.