Table of Contents

Class CallbackFrame

Namespace
KernLab.Cell.Contracts
Assembly
KernLab.Cell.Contracts.dll

回调(容器 → 宿主):按服务键分发到宿主侧使用方注册(requestId 多路复用)。

[WireMessageTag(32)]
public sealed record CallbackFrame : CellFrame, IEquatable<CellFrame>, IEquatable<CallbackFrame>
Inheritance
CallbackFrame
Implements
Inherited Members

Constructors

CallbackFrame()

public CallbackFrame()

Properties

CodecId

载荷编解码标识(CellCodecIds)。

public required ushort CodecId { get; init; }

Property Value

ushort

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Payload

载荷。

[WireMember(MaxCount = 4194304)]
public required ReadOnlyMemory<byte> Payload { get; init; }

Property Value

ReadOnlyMemory<byte>

RequestId

回调标识(发起侧单调分配;关联域原语——§3.3)。

public required ulong RequestId { get; init; }

Property Value

ulong

ServiceKey

服务键(宿主侧注册表键——Cell 零业务词汇)。UTF-8。

[WireMember(MaxCount = 256)]
public required ReadOnlyMemory<byte> ServiceKey { get; init; }

Property Value

ReadOnlyMemory<byte>

Methods

Equals(CallbackFrame?)

public bool Equals(CallbackFrame? other)

Parameters

other CallbackFrame

Returns

bool

Equals(CellFrame?)

public override sealed bool Equals(CellFrame? other)

Parameters

other CellFrame

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CallbackFrame?, CallbackFrame?)

public static bool operator ==(CallbackFrame? left, CallbackFrame? right)

Parameters

left CallbackFrame
right CallbackFrame

Returns

bool

operator !=(CallbackFrame?, CallbackFrame?)

public static bool operator !=(CallbackFrame? left, CallbackFrame? right)

Parameters

left CallbackFrame
right CallbackFrame

Returns

bool