public void SubscribeToPatientAlerts(string doctorId) { ICallbackDoctorMonitoringService callbackChannel = OperationContext.Current.GetCallbackChannel <ICallbackDoctorMonitoringService>(); AlertMonitorList alertList = AlertMonitorList.Instance; alertList.Subscribe(doctorId, callbackChannel.ReceiveAlerts); }
public void SubscribeToVitals(string patientId, string doctorId) { ICallbackDoctorMonitoringService callbackChannel = OperationContext.Current.GetCallbackChannel <ICallbackDoctorMonitoringService>(); VitalsMonitorList vitalsList = VitalsMonitorList.Instance; vitalsList.Subscribe(patientId, doctorId, callbackChannel.ReceiveVitals); }