Show / Hide Table of Contents

Class DefinedVariablesOnlyExpressionContextWrappingDecorator

Implementation of IGetsValueFromObject which uses only defined (global or local) variables to resolve values from the expression context. Similar to ExpressionContextWrappingDecorator.

Inheritance
System.Object
DefinedVariablesOnlyExpressionContextWrappingDecorator
Implements
IGetsValueFromObject
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.PathExpressions
Assembly: ZptSharp.dll
Syntax
public class DefinedVariablesOnlyExpressionContextWrappingDecorator : IGetsValueFromObject

Constructors

| Improve this Doc View Source

DefinedVariablesOnlyExpressionContextWrappingDecorator(IGetsValueFromObject)

Initializes a new instance of the DefinedVariablesOnlyExpressionContextWrappingDecorator class.

Declaration
public DefinedVariablesOnlyExpressionContextWrappingDecorator(IGetsValueFromObject wrapped)
Parameters
Type Name Description
IGetsValueFromObject wrapped

Wrapped.

Methods

| Improve this Doc View Source

TryGetValueAsync(String, Object, CancellationToken)

Returns the result from the wrapped service. If the object parameter is an instance of ExpressionContext then it is substituted in the call to the wrapped service with an instance of DefinedVariablesOnlyTalesValueForExpressionContextAdapter wrapping the original context.

Declaration
public Task<GetValueResult> TryGetValueAsync(string name, object object, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String name

The value name.

System.Object object

The object from which to retrieve the value.

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

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