Table of Contents

Class OperationChangeInfo

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll

Describes a change sent with the complete changed entity (state transfer) by the hub events ReceiveOperationChanged and ReceivePatientChanged. Clients replace their state with the entity; the change info only tells what changed, who changed it and in which order.

public sealed record OperationChangeInfo : IEquatable<OperationChangeInfo>
Inheritance
OperationChangeInfo
Implements
Inherited Members
Extension Methods

Constructors

OperationChangeInfo(long, Guid?, IReadOnlyList<string>)

Describes a change sent with the complete changed entity (state transfer) by the hub events ReceiveOperationChanged and ReceivePatientChanged. Clients replace their state with the entity; the change info only tells what changed, who changed it and in which order.

public OperationChangeInfo(long Revision, Guid? EditorId, IReadOnlyList<string> ChangedProperties)

Parameters

Revision long

Increases with every change; a client keeps the highest revision per entity and drops events with a lower one (they arrived out of order).

EditorId Guid?

The editor (one desk window) that made the change; null for changes by the system. A client may keep the value the user is typing in a field instead of overwriting it with its own echo.

ChangedProperties IReadOnlyList<string>

The changed properties, camel case as in the JSON of the entity.

Properties

ChangedProperties

The changed properties, camel case as in the JSON of the entity.

public IReadOnlyList<string> ChangedProperties { get; init; }

Property Value

IReadOnlyList<string>

EditorId

The editor (one desk window) that made the change; null for changes by the system. A client may keep the value the user is typing in a field instead of overwriting it with its own echo.

public Guid? EditorId { get; init; }

Property Value

Guid?

Revision

Increases with every change; a client keeps the highest revision per entity and drops events with a lower one (they arrived out of order).

public long Revision { get; init; }

Property Value

long

Methods

Deconstruct(out long, out Guid?, out IReadOnlyList<string>)

public void Deconstruct(out long Revision, out Guid? EditorId, out IReadOnlyList<string> ChangedProperties)

Parameters

Revision long
EditorId Guid?
ChangedProperties IReadOnlyList<string>

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(OperationChangeInfo?)

public bool Equals(OperationChangeInfo? other)

Parameters

other OperationChangeInfo

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OperationChangeInfo?, OperationChangeInfo?)

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

Parameters

left OperationChangeInfo
right OperationChangeInfo

Returns

bool

operator !=(OperationChangeInfo?, OperationChangeInfo?)

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

Parameters

left OperationChangeInfo
right OperationChangeInfo

Returns

bool