Class IterativeDocumentModifier
A service which which makes use of an IIterativelyProcessesExpressionContexts in order to apply a IProcessesExpressionContext to every node exposed by a document.
Inheritance
System.Object
IterativeDocumentModifier
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 IterativeDocumentModifier : IIterativelyModifiesDocument
Constructors
| Improve this Doc View SourceIterativeDocumentModifier(IGetsIterativeExpressionContextProcessor)
Initializes a new instance of the IterativeDocumentModifier class.
Declaration
public IterativeDocumentModifier(IGetsIterativeExpressionContextProcessor iteratorFactory)
Parameters
Type | Name | Description |
---|---|---|
IGetsIterativeExpressionContextProcessor | iteratorFactory | Iterator factory. |
Methods
| Improve this Doc View SourceModifyDocumentAsync(ExpressionContext, IProcessesExpressionContext, CancellationToken)
Modifies the document using the specified context processor.
Declaration
public Task ModifyDocumentAsync(ExpressionContext rootContext, IProcessesExpressionContext contextProcessor, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
ExpressionContext | rootContext | The root expression context. |
IProcessesExpressionContext | contextProcessor | The processor to use when processing each expression context. |
System.Threading.CancellationToken | token | A cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |