ExecuteContextAsync(IExecutionContext) Method
Returns a single document containing the concatenated content of all input documents with an optional delimiter and configurable metadata options.

Syntax

protected override Task<IEnumerable<IDocument>> ExecuteContextAsync(IExecutionContext context)

Remarks

Override this method to execute the module once for all input documents. The default behavior calls ExecuteInputAsync(IDocument, IExecutionContext) for each input document and overriding this method will result in ExecuteInputAsync(IDocument, IExecutionContext) not being called.

Parameters

Name Type Description
context IExecutionContext The execution context.

Return Value

Type Description
Task<IEnumerable<IDocument>> A single document in a list.