Table of Contents

Class DrainFrame

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

drain 公告(双向):发送方声明已停止接新调用(宿主停止派发/容器停止接单,§5.3)。

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

Constructors

DrainFrame()

public DrainFrame()

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Reason

drain 原因(CellDrainReasons)。

public required byte Reason { get; init; }

Property Value

byte

Methods

Equals(CellFrame?)

public override sealed bool Equals(CellFrame? other)

Parameters

other CellFrame

Returns

bool

Equals(DrainFrame?)

public bool Equals(DrainFrame? other)

Parameters

other DrainFrame

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

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

Parameters

left DrainFrame
right DrainFrame

Returns

bool

operator !=(DrainFrame?, DrainFrame?)

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

Parameters

left DrainFrame
right DrainFrame

Returns

bool