Class ConvertingValueSourceValueSource<T>
public class ConvertingValueSourceValueSource<T> : ValueSource<T>
Type Parameters
T
- Inheritance
-
ValueSource<T>ConvertingValueSourceValueSource<T>
- Inherited Members
Constructors
ConvertingValueSourceValueSource()
public ConvertingValueSourceValueSource()
ConvertingValueSourceValueSource(ValueSource)
public ConvertingValueSourceValueSource(ValueSource source)
Parameters
sourceValueSource
Properties
Source
public ValueSource? Source { get; set; }
Property Value
Methods
EvaluateAsync(ActivityContext, CancellationToken)
Evaluates the value.
public override Task<T> EvaluateAsync(ActivityContext context, CancellationToken cancellationToken = default)
Parameters
contextActivityContextThe activity context.
cancellationTokenCancellationTokenA token that can request cancelling the evaluation.
Returns
- Task<T>
A task that represents the asynchronous operation. The value of its Result property contains the resulting value.
Exceptions
- ArgumentNullException
contextis null.- Exception
The value could not be evaluated. Possible exceptions depend on the implementation.
ToString()
public override string ToString()