Пример #1
0
        public void DataQueue()
        {
            var presence = _sensor.PatientDetected();
            PresenceContainer container = new PresenceContainer();

            container.PresenceDetected = presence;
            _containerQueue.Enqueue(container);
        }
 public CtrlHospitalBed(AutoResetEvent dataEvent, Consumer consumer,
                        IAlarm alarm, IFilter filter, ILog log)
 {
     _dataEvent = dataEvent;
     _consumer  = consumer;
     _alarm     = alarm;
     _filter    = filter;
     _log       = log;
     _container = new PresenceContainer();
 }