コード例 #1
0
ファイル: TimestampService.cs プロジェクト: xj0229/gsf
        private SerializableBadTimestampMeasurement CreateSerializableBadTimestampMeasurement(IMeasurement measurement, Ticks arrivalTime)
        {
            SerializableBadTimestampMeasurement serializableMeasurement = new SerializableBadTimestampMeasurement(measurement, arrivalTime);

            serializableMeasurement.ProcessException += serializableMeasurement_ProcessException;
            serializableMeasurement.SetDeviceAndSignalType(m_test.DataSource);
            return(serializableMeasurement);
        }
コード例 #2
0
ファイル: TimestampService.cs プロジェクト: xj0229/gsf
        private SerializableTimestampTest ReadBadTimestampMeasurements()
        {
            SerializableTimestampTest serializableTest = new SerializableTimestampTest();
            Dictionary <Ticks, LinkedList <IMeasurement> > badTimestampMeasurements             = m_test.GetMeasurementsWithBadTimestamps();
            List <SerializableBadTimestampMeasurement>     serializableBadTimestampMeasurements = new List <SerializableBadTimestampMeasurement>();

            foreach (Ticks arrivalTime in badTimestampMeasurements.Keys)
            {
                foreach (IMeasurement measurement in badTimestampMeasurements[arrivalTime])
                {
                    SerializableBadTimestampMeasurement serializableMeasurement = CreateSerializableBadTimestampMeasurement(measurement, arrivalTime);
                    serializableBadTimestampMeasurements.Add(serializableMeasurement);
                }
            }

            serializableTest.BadTimestampMeasurements = serializableBadTimestampMeasurements.ToArray();
            return(serializableTest);
        }
コード例 #3
0
ファイル: TimestampService.cs プロジェクト: rmc00/gsf
 private SerializableBadTimestampMeasurement CreateSerializableBadTimestampMeasurement(IMeasurement measurement, Ticks arrivalTime)
 {
     SerializableBadTimestampMeasurement serializableMeasurement = new SerializableBadTimestampMeasurement(measurement, arrivalTime);
     serializableMeasurement.ProcessException += serializableMeasurement_ProcessException;
     serializableMeasurement.SetDeviceAndSignalType(m_test.DataSource);
     return serializableMeasurement;
 }