FromDocument(Func<IDocument, IExecutionContext, Task>) Method
Creates a config value from an action that uses a document and the execution context and returns null.
Namespace
Statiq.Common
Containing Type
Config

Syntax

public static Config<object> FromDocument(Func<IDocument, IExecutionContext, Task> action)

Parameters

Name Type Description
action Func<IDocument, IExecutionContext, Task> A delegate action to evaluate.

Return Value

Type Description
Config<object> A config object.