Class WsSubscriberExtension
- Namespace
- adas_core.Application.Subscriptions
- Assembly
- adas-core.Application.dll
Provides static extension methods to enhance WebSocket subscriber functionality.
public static class WsSubscriberExtension
- Inheritance
-
WsSubscriberExtension
- Inherited Members
Methods
Compare(WsSubscriberGrouped, GroupedField, ObjectId)
Determines whether the specified GroupedField and patient identifier match the current WsSubscriberGrouped instance by comparing regularity, since, start time shift, maximum, result sequence, patient identifier, and names (treating a null r.Name as an empty string).
public static bool Compare(this WsSubscriberGrouped source, GroupedField r, ObjectId patientId)
Parameters
sourceWsSubscriberGroupedThe current WsSubscriberGrouped instance being compared.
rGroupedFieldThe GroupedField to compare against the source.
patientIdObjectIdThe patient identifier to match against the source patient identifier.
Returns
- bool
trueif all compared properties are equal; otherwise,false.
IsNewObservationRelevantForGroup(WsSubscriberGrouped, PatientObservation)
Check if the incoming observation affect to the group and is new info or is irrelevant
public static bool IsNewObservationRelevantForGroup(this WsSubscriberGrouped group, PatientObservation obs)
Parameters
groupWsSubscriberGroupedobsPatientObservation