Class DataSource
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
dataObservableIObservable<IDataValue>The the IObservable<T> that produces data values.
descriptorIDataValueDescriptorThe data value descriptor.
dataSourceDisplayNamestringThe optional human-readable name of the data source.
Exceptions
- ArgumentNullException
dataObservableis null.- ArgumentNullException
descriptoris null.
Properties
DataObservable
Gets the IObservable<T> that produces data values.
public IObservable<IDataValue> DataObservable { get; }
Property Value
Descriptor
Gets the data value descriptor for this data source.
public IDataValueDescriptor Descriptor { get; }
Property Value
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
Remarks
This should be in title case (for example, "Gas Pressure").