public DataStreams(DataStreams original) : this() { _mainStream.AddData(original._mainStream); foreach (DataStream dataStream in original._dataStreams.Skip(1)) { DataStream newStream = new DataStream(dataStream.Name); newStream.AddData(dataStream); _dataStreams.Add(newStream); } }
public override void Shutdown() { // If data in the buffer has changed... if (_bufferItems != _buffer.Count) { //// Get a channel into the sequence's input channels. //Guid sequenceChannelId = _GetSequenceChannelId(); //// Clear it. //_sequence.SequenceData.DataStreams.ClearStream(sequenceChannelId); //// Copy our buffered data to it. //_sequence.SequenceData.DataStreams.AddData(sequenceChannelId, _buffer); // Get the data stream for the recorded data. DataStream recordingStream = _GetRecordingStream(); // Clear it. recordingStream.Clear(); // Copy our buffered data to it. recordingStream.AddData(_buffer); } }