LogicalWriterWriteAsync(ObservationRecord, Boolean) Method

Writes the given observation record, as well as its data source and monitor settings records if necessary, to the file stream.

Definition

Namespace: Gemstone.PQDIF.Logical
Assembly: Gemstone.PQDIF (in Gemstone.PQDIF.dll) Version: 1.0.173 -- Release Build+83080c2c75f31cf4c77448eec3f624d323a6c7eb
public Task WriteAsync(
	ObservationRecord observationRecord,
	bool lastRecord = false
)

Parameters

observationRecord  ObservationRecord
The observation record to be written to the PQDIF file.
lastRecord  Boolean  (Optional)
Indicates whether this observation record is the last record in the file.

Return Value

Task

[Missing <returns> documentation for "M:Gemstone.PQDIF.Logical.LogicalWriter.WriteAsync(Gemstone.PQDIF.Logical.ObservationRecord,System.Boolean)"]

Exceptions

ArgumentNullExceptionobservationRecord is null.
ObjectDisposedExceptionThe writer was disposed.
InvalidOperationException

File does not yet have a ContainerRecord.

- OR -

observationRecord does not have a data source.

InvalidDataExceptionThe PQDIF data is invalid.

See Also