public InternalRegistrationInfo(TemperatureThresholdRegistrationInfo temperatureThresholdRegistrationInfo) { Threshold = temperatureThresholdRegistrationInfo.Threshold; WaiverMargin = temperatureThresholdRegistrationInfo.WaiverMargin; ChangeDirection = temperatureThresholdRegistrationInfo.ChangeDirection; IsFluctuatingAroundThreshold = false; TemperatureThresholedReachedHandler = temperatureThresholdRegistrationInfo.TemperatureThresholedReachedHandler; }
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); }
public void RequestRegistration(TemperatureThresholdRegistrationInfo temperatureTresholdRegistrationInfo) { InternalRegistrationInfo registrationInfo = new InternalRegistrationInfo(temperatureTresholdRegistrationInfo); _registerationRequests.Add(registrationInfo); }