示例#1
0
        public Monitor(ContainerId containerId
                       , Specification spec)
        {
            ContainerId   = containerId ?? throw new ArgumentNullException(nameof(containerId));
            Specification = spec ?? throw new ArgumentNullException(nameof(spec));

            ConsecOutOfRangeReadings = new ReadingsCollection();
        }
示例#2
0
 // rehydration ctor
 public Monitor(ContainerId contanerId
                , Specification specification
                , Reading lastReading
                , ReadingsCollection consecOutOfRangeReadings
                , bool alarmStarted)
 {
     ContainerId              = contanerId;
     Specification            = specification;
     LastReading              = lastReading;
     ConsecOutOfRangeReadings = consecOutOfRangeReadings;
     AlarmStarted             = alarmStarted;
 }