Table of Contents

Class DataSource

Namespace
Acuit.Pinpoint.IO.Testing.Data
Assembly
Acuit.Pinpoint.IO.Testing.Abstractions.dll

A data source.

public class DataSource : IDataSource
Inheritance
DataSource
Implements
Inherited Members

Constructors

DataSource(IObservable<IDataValue>, IDataValueDescriptor, string)

Initializes a new instance of the DataSource class.

public DataSource(IObservable<IDataValue> dataObservable, IDataValueDescriptor descriptor, string dataSourceDisplayName = null)

Parameters

dataObservable IObservable<IDataValue>

The the IObservable<T> that produces data values.

descriptor IDataValueDescriptor

The data value descriptor.

dataSourceDisplayName string

The optional human-readable name of the data source.

Exceptions

ArgumentNullException

dataObservable is null.

ArgumentNullException

descriptor is null.

Properties

DataObservable

Gets the IObservable<T> that produces data values.

public IObservable<IDataValue> DataObservable { get; }

Property Value

IObservable<IDataValue>

Descriptor

Gets the data value descriptor for this data source.

public IDataValueDescriptor Descriptor { get; }

Property Value

IDataValueDescriptor

DisplayName

Gets the optional human-readable name of the data source (e.g., a reading name), or null if there is none.

public string DisplayName { get; }

Property Value

string

Remarks

This should be in title case (for example, "Gas Pressure").