SyncModule Class
A common base class for synchronous modules.
SyncModule
Module
object
IModule
TakeDocuments
ReadDataModule<TModule, TItem>
PaginateDocuments
FlattenTree
RemoveTreePlaceholders
SyncParentModule
ReadApplicationInput
GatherDocuments
ApplyDirectoryMetadata

Syntax

public abstract class SyncModule : Module, IModule

Remarks

Documents can either be processed one at a time by overriding ExecuteInput(IDocument, IExecutionContext) or all at once by overriding ExecuteContext(IExecutionContext).

Methods

Name Return Value Summary
AfterExecution(IExecutionContext, ExecutionOutputs) void
Called after each module execution.
Inherited from Module
AfterExecutionAsync(IExecutionContext, ExecutionOutputs) Task
Called after each module execution.
Inherited from Module
BeforeExecution(IExecutionContext) void
Called before each module execution.
Inherited from Module
BeforeExecutionAsync(IExecutionContext) Task
Called before each module execution.
Inherited from Module
ExecuteAsync(IExecutionContext) Task<IEnumerable<IDocument>>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
ExecuteContext(IExecutionContext) IEnumerable<IDocument>
Executes the module once for all input documents.
ExecuteContextAsync(IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module once for all input documents.
ExecuteInput(IDocument, IExecutionContext) IEnumerable<IDocument>
Executes the module.
ExecuteInputAsync(IDocument, IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module.
Finally(IExecutionContext) void
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
FinallyAsync(IExecutionContext) Task
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module

Extension Methods