SetContent Class
Sets the content of each document.
graph BT Type-->Base0["ParallelSyncConfigModule<IContentProvider>"] Base0-->Base1["ParallelConfigModule<IContentProvider>"] Base1-->Base2["Module"] click Base2 "/api/Statiq.Common/Module" Base2-->Base3["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type-.->Interface1["IParallelModule"] click Interface1 "/api/Statiq.Common/IParallelModule" Type["SetContent"] class Type type-node

Syntax

public class SetContent : ParallelSyncConfigModule<IContentProvider>, IModule, IParallelModule

Constructors

Name Summary
SetContent(Config<IContentProvider>) Sets the content of each document to the config value.
SetContent(Config<string>, Config<string>) Sets the content of each document to the config value. If the value is null, the original input document will be output (use System.String.Empty to clear the content).
SetContent(Config<string>) Sets the content of each document to the config value. If the value is null, the original input document will be output (use System.String.Empty to clear the content).

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
ExecuteConfig(IDocument, IExecutionContext, IContentProvider) IEnumerable<IDocument>
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