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
dataObservable
IObservable<IDataValue>The the IObservable<T> that produces data values.
descriptor
IDataValueDescriptorThe data value descriptor.
dataSourceDisplayName
stringThe 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
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").