Class ZptCleanupContextProcessor
An implementation of IProcessesExpressionContext which 'cleans up' ZPT markup from the rendered document. This context processor would typically be executed last, in order to strip out all ZPT-related directives from a document which has already been processed.
Inheritance
System.Object
ZptCleanupContextProcessor
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.Rendering
Assembly: ZptSharp.dll
Syntax
public class ZptCleanupContextProcessor : IProcessesExpressionContext
Constructors
| Improve this Doc View SourceZptCleanupContextProcessor(IGetsWellKnownNamespace, ILogger<ZptCleanupContextProcessor>, IOmitsNode)
Initializes a new instance of the ZptCleanupContextProcessor class.
Declaration
public ZptCleanupContextProcessor(IGetsWellKnownNamespace namespaceProvider, ILogger<ZptCleanupContextProcessor> logger, IOmitsNode omitter)
Parameters
Type | Name | Description |
---|---|---|
IGetsWellKnownNamespace | namespaceProvider | Namespace provider. |
Microsoft.Extensions.Logging.ILogger<ZptCleanupContextProcessor> | logger | A logger. |
IOmitsNode | omitter | The node omitter. |
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 |
---|---|---|
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. |