Class LinksNotification
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
LinksNotification(uint, IReadOnlyList<(Link<uint> Before, Link<uint> After)>)
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
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.
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
Methods
Equals(LinksNotification?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(LinksNotification? other)
Parameters
otherLinksNotificationAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.