Show / Hide Table of Contents

Class ConditionAttributeDecorator

Decorator for IHandlesProcessingError which handles TAL 'condition' attributes.

Inheritance
System.Object
ConditionAttributeDecorator
Implements
IHandlesProcessingError
IProcessesExpressionContext
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.Tal
Assembly: ZptSharp.dll
Syntax
public class ConditionAttributeDecorator : IHandlesProcessingError, IProcessesExpressionContext

Constructors

| Improve this Doc View Source

ConditionAttributeDecorator(IHandlesProcessingError, IGetsTalAttributeSpecs, IEvaluatesExpression, IInterpretsExpressionResult)

Initializes a new instance of the ConditionAttributeDecorator class.

Declaration
public ConditionAttributeDecorator(IHandlesProcessingError wrapped, IGetsTalAttributeSpecs specProvider, IEvaluatesExpression evaluator, IInterpretsExpressionResult resultInterpreter)
Parameters
Type Name Description
IHandlesProcessingError wrapped

Wrapped.

IGetsTalAttributeSpecs specProvider

Spec provider.

IEvaluatesExpression evaluator

Evaluator.

IInterpretsExpressionResult resultInterpreter

Result interpreter.

Methods

| Improve this Doc View Source

ProcessContextAsync(ExpressionContext, CancellationToken)

Processes the context using the rules defined within this object.

Declaration
public Task<ExpressionContextProcessingResult> ProcessContextAsync(ExpressionContext context, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ExpressionContext context

The context to process.

System.Threading.CancellationToken token

An optional cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<ExpressionContextProcessingResult>

A result object indicating the outcome of processing.

Explicit Interface Implementations

| Improve this Doc View Source

IHandlesProcessingError.HandleErrorAsync(Exception, ExpressionContext, CancellationToken)

Declaration
Task<ErrorHandlingResult> IHandlesProcessingError.HandleErrorAsync(Exception ex, ExpressionContext context, CancellationToken token)
Parameters
Type Name Description
System.Exception ex
ExpressionContext context
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task<ErrorHandlingResult>

Implements

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