Table of Contents

Class ChunkedInvocation

Namespace
KernLab.Cell
Assembly
KernLab.Cell.dll

流式调用句柄(宿主侧——InvokeStreamAsync(string, ushort, PipeReader, TimeSpan?, CancellationToken) 产物): Body 读到流结束=响应体尽;Completion 收场尾单——必须读到体尽并等尾单 (错误码非 0 时已读体是部分产物,使用方自决取舍)。Dispose 只做本地清理(放弃 Body——在途关联由 deadline/ChunkEnd 诚实收场,不伪造)。

public sealed class ChunkedInvocation : IAsyncDisposable
Inheritance
ChunkedInvocation
Implements
Inherited Members

Properties

Body

响应体读侧(有界管道——消费慢即整通道背压;读到流结束=体尽)。

public PipeReader Body { get; }

Property Value

PipeReader

CallId

调用标识(关联域原语——Cancel 逐字引用)。

public ulong CallId { get; }

Property Value

ulong

Completion

收场尾单(ChunkEnd 到达/deadline 兜底失败 CellCallException/取消 TaskCanceledException)。

public Task<ChunkedTrailer> Completion { get; }

Property Value

Task<ChunkedTrailer>

Methods

DisposeAsync()

public ValueTask DisposeAsync()

Returns

ValueTask