Class LocalVariablesOnlyTalesValueForExpressionContextAdapter
Implementation of IGetsNamedTalesValue which exposes local variables from the wrapped ExpressionContext.
Inheritance
System.Object
LocalVariablesOnlyTalesValueForExpressionContextAdapter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions
Assembly: ZptSharp.dll
Syntax
public class LocalVariablesOnlyTalesValueForExpressionContextAdapter : IGetsNamedTalesValue
Constructors
| Improve this Doc View SourceLocalVariablesOnlyTalesValueForExpressionContextAdapter(ExpressionContext)
Initializes a new instance of the LocalVariablesOnlyTalesValueForExpressionContextAdapter class.
Declaration
public LocalVariablesOnlyTalesValueForExpressionContextAdapter(ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
ExpressionContext | context | Context. |
Properties
| Improve this Doc View SourceContext
Gets the expression context wrapped by the current instance.
Declaration
public ExpressionContext Context { get; }
Property Value
Type | Description |
---|---|
ExpressionContext | The expression context. |
Methods
| Improve this Doc View SourceTryGetValueAsync(String, CancellationToken)
Attempts to get a value for a named reference, relative to the current instance.
Declaration
public Task<GetValueResult> TryGetValueAsync(string name, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the value to retrieve. |
System.Threading.CancellationToken | cancellationToken | An optional cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GetValueResult> | An object indicating whether a value was successfully retrieved or not, along with the retrieved value (if applicable). |