Class CallbackFrame
回调(容器 → 宿主):按服务键分发到宿主侧使用方注册(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
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Payload
载荷。
[WireMember(MaxCount = 4194304)]
public required ReadOnlyMemory<byte> Payload { get; init; }
Property Value
RequestId
回调标识(发起侧单调分配;关联域原语——§3.3)。
public required ulong RequestId { get; init; }
Property Value
ServiceKey
服务键(宿主侧注册表键——Cell 零业务词汇)。UTF-8。
[WireMember(MaxCount = 256)]
public required ReadOnlyMemory<byte> ServiceKey { get; init; }
Property Value
Methods
Equals(CallbackFrame?)
public bool Equals(CallbackFrame? other)
Parameters
otherCallbackFrame
Returns
Equals(CellFrame?)
public override sealed bool Equals(CellFrame? other)
Parameters
otherCellFrame
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CallbackFrame?, CallbackFrame?)
public static bool operator ==(CallbackFrame? left, CallbackFrame? right)
Parameters
leftCallbackFramerightCallbackFrame
Returns
operator !=(CallbackFrame?, CallbackFrame?)
public static bool operator !=(CallbackFrame? left, CallbackFrame? right)
Parameters
leftCallbackFramerightCallbackFrame