Table of Contents

Class LinksNotification

Namespace
Foundation.Data.Doublets.Cli.Protocol
Assembly
Foundation.Data.Doublets.Cli.dll

A change a LinksServer pushed to a subscriber: the subscription it fits and its changes, a missing side being the null link.

public sealed record LinksNotification : IEquatable<LinksNotification>
Inheritance
LinksNotification
Implements
Inherited Members

Remarks

Each side is the link as the subscription sees it: a side that does not fit the restriction (or that the subscriber may not read) is the null link, so a link that leaves the subscription arrives as a deletion and one that comes into it as a creation.

Constructors

A change a LinksServer pushed to a subscriber: the subscription it fits and its changes, a missing side being the null link.

public LinksNotification(uint Subscription, IReadOnlyList<(Link<uint> Before, Link<uint> After)> Changes)

Parameters

Subscription uint
Changes IReadOnlyList<(Link<uint> Before, Link<uint> After)>

Each side is the link as the subscription sees it: a side that does not fit the restriction (or that the subscriber may not read) is the null link, so a link that leaves the subscription arrives as a deletion and one that comes into it as a creation.

Properties

Changes

public IReadOnlyList<(Link<uint> Before, Link<uint> After)> Changes { get; init; }

Property Value

IReadOnlyList<(Link<uint> Before, Link<uint> After)>

Subscription

public uint Subscription { get; init; }

Property Value

uint

Methods

Equals(LinksNotification?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(LinksNotification? other)

Parameters

other LinksNotification

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.