ParallelConfigModule<TValue> Class
Base class for modules that rely on a config value and could apply to input documents in parallel (or not) depending on whether the config delegate requires them.
ParallelConfigModule<TValue>
Module
object
IModule
IParallelModule
ReplaceWithContent
ExecuteConfig
EnumerateValues
ParallelSyncConfigModule<TValue>
SetMetadata
SetDestination
AppendContent
CopyFiles
PrependContent
ReadFiles
ReplaceInContent
GatherHeadings

Syntax

public abstract class ParallelConfigModule<TValue> : Module, IModule, IParallelModule

Type Parameters

Name Description
TValue

Constructors

Name Summary
ParallelConfigModule(Config<TValue>, bool) Creates a new config module.

Properties

Name Property Type Summary
Parallel bool
Indicates whether documents will be processed by this module in parallel.

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
ExecuteConfigAsync(IDocument, IExecutionContext, TValue) Task<IEnumerable<IDocument>>
Executes the module for each input document in parallel. If there aren't any input documents and the config delegate doesn't require documents, this will be called once with a null input.
ExecuteContextAsync(IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module once for all input documents.
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
SetConfig(Config<TValue>) ParallelConfigModule<TValue>

Extension Methods