Class NotifyFrame
通知(双向,双向通知设计稿):无 CallId、无应答、无序号——投递语义=尽力有序(单派发者 FIFO)、 有界丢最旧(NotifyQueueDepth/NotifyQueueBudgetBytes 双限); 业务不可丢事件禁走通知(丢不得的走 Invoke/Callback——超时即显式失败,设计稿 §0 负面清单)。
[WireMessageTag(80)]
public sealed record NotifyFrame : CellFrame, IEquatable<CellFrame>, IEquatable<NotifyFrame>
- Inheritance
-
NotifyFrame
- Implements
- Inherited Members
Constructors
NotifyFrame()
public NotifyFrame()
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Key
通知键(使用方自定义串——与站点键同一词汇纪律,公开面零业务词汇;UTF-8 线内 ≤256B)。
[WireMember(MaxCount = 256)]
public required ReadOnlyMemory<byte> Key { get; init; }
Property Value
Payload
载荷(帧级硬顶不变;v1 使用建议 ≤64KB——大内容走 InvokeStreamAsync,设计稿 §8 默认 #3)。
[WireMember(MaxCount = 4194304)]
public required ReadOnlyMemory<byte> Payload { get; init; }
Property Value
Methods
Equals(CellFrame?)
public override sealed bool Equals(CellFrame? other)
Parameters
otherCellFrame
Returns
Equals(NotifyFrame?)
public bool Equals(NotifyFrame? other)
Parameters
otherNotifyFrame
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 ==(NotifyFrame?, NotifyFrame?)
public static bool operator ==(NotifyFrame? left, NotifyFrame? right)
Parameters
leftNotifyFramerightNotifyFrame
Returns
operator !=(NotifyFrame?, NotifyFrame?)
public static bool operator !=(NotifyFrame? left, NotifyFrame? right)
Parameters
leftNotifyFramerightNotifyFrame