Class OperationChangeInfo
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
RevisionlongIncreases with every change; a client keeps the highest revision per entity and drops events with a lower one (they arrived out of order).
EditorIdGuid?The editor (one desk window) that made the change;
nullfor 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.ChangedPropertiesIReadOnlyList<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
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
Methods
Deconstruct(out long, out Guid?, out IReadOnlyList<string>)
public void Deconstruct(out long Revision, out Guid? EditorId, out IReadOnlyList<string> ChangedProperties)
Parameters
RevisionlongEditorIdGuid?ChangedPropertiesIReadOnlyList<string>
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(OperationChangeInfo?)
public bool Equals(OperationChangeInfo? other)
Parameters
otherOperationChangeInfo
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OperationChangeInfo?, OperationChangeInfo?)
public static bool operator ==(OperationChangeInfo? left, OperationChangeInfo? right)
Parameters
leftOperationChangeInforightOperationChangeInfo
Returns
operator !=(OperationChangeInfo?, OperationChangeInfo?)
public static bool operator !=(OperationChangeInfo? left, OperationChangeInfo? right)
Parameters
leftOperationChangeInforightOperationChangeInfo