Show / Hide Table of Contents

Class DefinedVariablesOnlyTalesValueForExpressionContextAdapter

Implementation of IGetsNamedTalesValue which exposes defined (local & global) variables from the wrapped ExpressionContext.

Inheritance
System.Object
DefinedVariablesOnlyTalesValueForExpressionContextAdapter
Implements
IGetsNamedTalesValue
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 DefinedVariablesOnlyTalesValueForExpressionContextAdapter : IGetsNamedTalesValue

Constructors

| Improve this Doc View Source

DefinedVariablesOnlyTalesValueForExpressionContextAdapter(ExpressionContext)

Initializes a new instance of the DefinedVariablesOnlyTalesValueForExpressionContextAdapter class.

Declaration
public DefinedVariablesOnlyTalesValueForExpressionContextAdapter(ExpressionContext context)
Parameters
Type Name Description
ExpressionContext context

Context.

Properties

| Improve this Doc View Source

Context

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 Source

TryGetValueAsync(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).

Implements

IGetsNamedTalesValue
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX