ConfigModule(Config<TValue>, bool) Constructor
Creates a new config module.
Namespace
Statiq.Common
Containing Type
ConfigModule<TValue>

Syntax

protected ConfigModule(Config<TValue> config, bool forceDocumentExecution)

Parameters

Name Type Description
config Config<TValue> The delegate to use for getting a config value.
forceDocumentExecution bool true to force calling ExecuteConfigAsync(IDocument, IExecutionContext, TValue) for each input document regardless of whether the config delegate requires a document or false to allow calling ExecuteConfigAsync(IDocument, IExecutionContext, TValue) once with a null input document if the config delegate does not require a document.