Esempio n. 1
0
 private IEnumerable <DateTimeOffset?> GetTimes(ChannelMeasurementBase item)
 {
     return(new DateTimeOffset?[]
     {
         item.MeasurementStartTime,
         item.MeasurementEndTime,
     });
 }
        private IEnumerable <DateTimeOffset> ChannelMeasurementTimes(ChannelMeasurementBase channelMeasurement)
        {
            yield return(channelMeasurement.MeasurementPeriod.Start);

            yield return(channelMeasurement.MeasurementPeriod.End);

            if (!(channelMeasurement is ManualGaugingDischargeSection manualGauging))
            {
                yield break;
            }

            foreach (var time in ManualGaugingTimes(manualGauging))
            {
                yield return(time);
            }
        }