Example #1
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);
        }