Class ReadingNow
public class ReadingNow : ValueSource<TimestampedReadingValue>
- Inheritance
-
ReadingNow
- Inherited Members
Constructors
ReadingNow()
public ReadingNow()
ReadingNow(string)
public ReadingNow(string readingName)
Parameters
readingName
string
Properties
ReadingName
public string ReadingName { get; set; }
Property Value
Methods
EvaluateAsync(ActivityContext, CancellationToken)
Evaluates the value.
public override Task<TimestampedReadingValue> EvaluateAsync(ActivityContext context, CancellationToken cancellationToken = default)
Parameters
context
ActivityContextThe activity context.
cancellationToken
CancellationTokenA token that can request cancelling the evaluation.
Returns
- Task<TimestampedReadingValue>
A task that represents the asynchronous operation. The value of its Result property contains the resulting value.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.