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.
- Namespace
- Statiq
.Common - Interfaces
- Base Types
-
- object
- Module
- ParallelConfigModule
<TValue>
- Derived Types
graph BT
Type-->Base0["ParallelConfigModule<TValue>"]
Base0-->Base1["Module"]
click Base1 "/api/Statiq.Common/Module"
Base1-->Base2["object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Statiq.Common/IModule"
Type-.->Interface1["IParallelModule"]
click Interface1 "/api/Statiq.Common/IParallelModule"
Type["ParallelSyncConfigModule<TValue>"]
class Type type-node
Derived0["SetMediaType"]-->Type
click Derived0 "/api/Statiq.Core/SetMediaType"
Derived1["GenerateJson"]-->Type
click Derived1 "/api/Statiq.Core/GenerateJson"
Derived2["SetContent"]-->Type
click Derived2 "/api/Statiq.Core/SetContent"
Derived3["ReadWorkspace"]-->Type
click Derived3 "/api/Statiq.CodeAnalysis/ReadWorkspace"
Syntax
public abstract class ParallelSyncConfigModule<TValue> : ParallelConfigModule<TValue>, IModule,
IParallelModule
Type Parameters
Name | Description |
---|---|
TValue |
Constructors
Name | Summary |
---|---|
Parallel |
Creates a new config module. |
Methods
Name | Return Value | Summary |
---|---|---|
AfterExecution |
void |
Called after each module execution.
Inherited from Module
|
AfterExecutionAsync |
Task |
Called after each module execution.
Inherited from Module
|
BeforeExecution |
void |
Called before each module execution.
Inherited from Module
|
BeforeExecutionAsync |
Task |
Called before each module execution.
Inherited from Module
|
ExecuteAsync |
Task |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
|
ExecuteConfig |
IEnumerable |
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.
|
ExecuteConfigAsync |
Task |
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.
|
Finally |
void |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|
FinallyAsync |
Task |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|