示例#1
0
 public InternalRegistrationInfo(TemperatureThresholdRegistrationInfo temperatureThresholdRegistrationInfo)
 {
     Threshold       = temperatureThresholdRegistrationInfo.Threshold;
     WaiverMargin    = temperatureThresholdRegistrationInfo.WaiverMargin;
     ChangeDirection = temperatureThresholdRegistrationInfo.ChangeDirection;
     IsFluctuatingAroundThreshold        = false;
     TemperatureThresholedReachedHandler = temperatureThresholdRegistrationInfo.TemperatureThresholedReachedHandler;
 }
示例#2
0
        public void RegisrterForTemperatureChange(OvenRegistrationInfo ovenRegistrationInfo)
        {
            TemperatureThresholdRegistrationInfo temperatureThresholdRegistrationInfo = new TemperatureThresholdRegistrationInfo();

            temperatureThresholdRegistrationInfo.Threshold       = ovenRegistrationInfo.Threshold;
            temperatureThresholdRegistrationInfo.WaiverMargin    = ovenRegistrationInfo.WaiverMargin;
            temperatureThresholdRegistrationInfo.ChangeDirection = ovenRegistrationInfo.ChangeDirection;
            temperatureThresholdRegistrationInfo.TemperatureThresholedReachedHandler = Handler;
            _thermoMeter.RequestRegistration(temperatureThresholdRegistrationInfo);
        }
示例#3
0
        public void RequestRegistration(TemperatureThresholdRegistrationInfo temperatureTresholdRegistrationInfo)
        {
            InternalRegistrationInfo registrationInfo = new InternalRegistrationInfo(temperatureTresholdRegistrationInfo);

            _registerationRequests.Add(registrationInfo);
        }