Class ContentOrReplaceAttributeDecorator
Implementation of IHandles
Inheritance
System.Object
ContentOrReplaceAttributeDecorator
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 ContentOrReplaceAttributeDecorator : IHandlesProcessingError, IProcessesExpressionContext
Constructors
| Improve this Doc View SourceContentOrReplaceAttributeDecorator(IHandlesProcessingError, IGetsTalAttributeSpecs, IEvaluatesDomValueExpression, IReplacesNode, IOmitsNode, ILogger<ContentOrReplaceAttributeDecorator>)
Initializes a new instance of the Content
Declaration
public ContentOrReplaceAttributeDecorator(IHandlesProcessingError wrapped, IGetsTalAttributeSpecs specProvider, IEvaluatesDomValueExpression evaluator, IReplacesNode replacer, IOmitsNode omitter, ILogger<ContentOrReplaceAttributeDecorator> logger)
Parameters
Type | Name | Description |
---|---|---|
IHandles |
wrapped | Wrapped. |
IGets |
specProvider | Spec provider. |
IEvaluates |
evaluator | Evaluator. |
IReplaces |
replacer | Replacer. |
IOmits |
omitter | Omitter. |
Microsoft. |
logger | Logger. |
Methods
| Improve this Doc View SourceProcessContextAsync(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 |
---|---|---|
Expression |
context | The context to process. |
System. |
token | An optional cancellation token. |
Returns
Type | Description |
---|---|
System. |
A result object indicating the outcome of processing. |
Explicit Interface Implementations
| Improve this Doc View SourceIHandlesProcessingError.HandleErrorAsync(Exception, ExpressionContext, CancellationToken)
Declaration
Task<ErrorHandlingResult> IHandlesProcessingError.HandleErrorAsync(Exception ex, ExpressionContext context, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
System. |
ex | |
Expression |
context | |
System. |
token |
Returns
Type | Description |
---|---|
System. |