Table of Contents

Class NotifyFrame

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

通知(双向,双向通知设计稿):无 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

Type

Key

通知键(使用方自定义串——与站点键同一词汇纪律,公开面零业务词汇;UTF-8 线内 ≤256B)。

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

Property Value

ReadOnlyMemory<byte>

Payload

载荷(帧级硬顶不变;v1 使用建议 ≤64KB——大内容走 InvokeStreamAsync,设计稿 §8 默认 #3)。

[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(NotifyFrame?)

public bool Equals(NotifyFrame? other)

Parameters

other NotifyFrame

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

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

Parameters

left NotifyFrame
right NotifyFrame

Returns

bool

operator !=(NotifyFrame?, NotifyFrame?)

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

Parameters

left NotifyFrame
right NotifyFrame

Returns

bool