Table of Contents

Class ReadingNow

Namespace
Acuit.Pinpoint.Workflows.Testing.IO
Assembly
Acuit.Pinpoint.Workflows.Testing.dll
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

string

Methods

EvaluateAsync(ActivityContext, CancellationToken)

Evaluates the value.

public override Task<TimestampedReadingValue> EvaluateAsync(ActivityContext context, CancellationToken cancellationToken = default)

Parameters

context ActivityContext

The activity context.

cancellationToken CancellationToken

A 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.

Exceptions

ArgumentNullException

context is null.

Exception

The value could not be evaluated. Possible exceptions depend on the implementation.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.