C# Class TestData.HistoryDataReader

A class used to read values from a history data source.
Inheritance: IDisposable
Exibir arquivo Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
BeginReadRaw ( ServerSystemContext context, ReadRawModifiedDetails request, TimestampsToReturn timestampsToReturn, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, DataValueCollection values ) : void

Starts reading raw values.

Dispose ( ) : void

Frees any unmanaged resources.

HistoryDataReader ( Opc.Ua.NodeId variableId, IHistoryDataSource source ) : System

Constructs a reader for the source.

NextReadRaw ( ServerSystemContext context, TimestampsToReturn timestampsToReturn, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, DataValueCollection values ) : bool

Continues a read raw operation.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
AddValue ( TimestampsToReturn timestampsToReturn, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, DataValueCollection values, Opc.Ua.DataValue value ) : void

Adds a DataValue to a list of values to return.

Method Details

BeginReadRaw() public method

Starts reading raw values.
public BeginReadRaw ( ServerSystemContext context, ReadRawModifiedDetails request, TimestampsToReturn timestampsToReturn, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, DataValueCollection values ) : void
context Opc.Ua.Server.ServerSystemContext The context for the operation.
request ReadRawModifiedDetails The request parameters.
timestampsToReturn TimestampsToReturn The timestamps to return with the value.
indexRange Opc.Ua.NumericRange The range to return for array values.
dataEncoding Opc.Ua.QualifiedName The data encoding to use for structured values.
values DataValueCollection The values to return.
return void

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

HistoryDataReader() public method

Constructs a reader for the source.
public HistoryDataReader ( Opc.Ua.NodeId variableId, IHistoryDataSource source ) : System
variableId Opc.Ua.NodeId
source IHistoryDataSource The source of the history data.
return System

NextReadRaw() public method

Continues a read raw operation.
public NextReadRaw ( ServerSystemContext context, TimestampsToReturn timestampsToReturn, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, DataValueCollection values ) : bool
context Opc.Ua.Server.ServerSystemContext The context for the operation.
timestampsToReturn TimestampsToReturn The timestamps to return with the value.
indexRange Opc.Ua.NumericRange The range to return for array values.
dataEncoding Opc.Ua.QualifiedName The data encoding to use for structured values.
values DataValueCollection The values to return.
return bool