Table of Contents

Class ResultFrame

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

调用回执(容器 → 宿主):错误码表(CellInvocationErrors)+载荷。

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

Constructors

ResultFrame()

public ResultFrame()

Properties

CallId

对应调用的 CallId。

public required ulong CallId { get; init; }

Property Value

ulong

CodecId

载荷编解码标识(错误回执可为 None 且载荷空)。

public required ushort CodecId { get; init; }

Property Value

ushort

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

ErrorCode

调用错误码(0=成功;CellInvocationErrors 表)。

public required ushort ErrorCode { get; init; }

Property Value

ushort

Payload

载荷。

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

Property Value

ReadOnlyMemory<byte>

Methods

Equals(CellFrame?)

public override sealed bool Equals(CellFrame? other)

Parameters

other CellFrame

Returns

bool

Equals(ResultFrame?)

public bool Equals(ResultFrame? other)

Parameters

other ResultFrame

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 ==(ResultFrame?, ResultFrame?)

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

Parameters

left ResultFrame
right ResultFrame

Returns

bool

operator !=(ResultFrame?, ResultFrame?)

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

Parameters

left ResultFrame
right ResultFrame

Returns

bool