Table of Contents

Class NamedPipeCellTransport

Namespace
KernLab.Cell
Assembly
KernLab.Cell.dll

Windows 命名管道载体(§4 载体阶梯——UDS 的 Windows 对位物:内核介质+ACL 面,非 TCP 栈)。 判例正确形态铁律(2026-09-26 挂死判例经 tests/KernLab.Cell.NpProbe 净室七形态复验后收敛): PipeDirection.InOut+PipeTransmissionMode.Byte+PipeOptions.Asynchronous+显式 64KB 缓冲。 仅 Windows——非 Windows 构造即抛(与 uds 在 Windows 侧对称互斥,fail-fast 不静默)。

public sealed class NamedPipeCellTransport : ICellTransport, IAsyncDisposable
Inheritance
NamedPipeCellTransport
Implements
Inherited Members

Constructors

NamedPipeCellTransport()

构造。

public NamedPipeCellTransport()

Methods

BindAsync(CellEndpointDescriptor, CancellationToken)

Bind——绑定端点为服务端听点(宿主侧 spawn 前调用;载体限定描述符)。

public ValueTask<ICellTransportListener> BindAsync(CellEndpointDescriptor endpoint, CancellationToken cancellationToken = default)

Parameters

endpoint CellEndpointDescriptor
cancellationToken CancellationToken

Returns

ValueTask<ICellTransportListener>

ConnectAsync(CellEndpointDescriptor, CancellationToken)

Connect——向端点发起连接(容器侧;端点未绑定即失败,绝不静默重试)。

public ValueTask<ICellTransportConnection> ConnectAsync(CellEndpointDescriptor endpoint, CancellationToken cancellationToken = default)

Parameters

endpoint CellEndpointDescriptor
cancellationToken CancellationToken

Returns

ValueTask<ICellTransportConnection>

DisposeAsync()

public ValueTask DisposeAsync()

Returns

ValueTask