Table of Contents

Class ContainerNamedPipeTransport

Namespace
KernLab.Cell.Runtime
Assembly
KernLab.Cell.Runtime.dll

容器侧命名管道载体(D2 边界内必然自足——宿主侧实现不可引用;仅 Windows)。 判例正确形态铁律与宿主侧同源:InOut+Byte+Asynchronous+显式 64KB 缓冲(NpProbe 复验形态)。

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

Constructors

ContainerNamedPipeTransport()

构造。

public ContainerNamedPipeTransport()

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

NewPipeName()

自报管道名(cell-<pid>-<8hex>——pid 跨引导可复用,短随机后缀杜绝跨引导碰撞)。

public static string NewPipeName()

Returns

string