ConfigHelper<T>.

GetValue(IDocument, IExecutionContext, Func<T, T>) Method

Summary

Call this each time you need the value, passing in a post-processing function if required. If no document delegate is specified, then this will get and cache the value on first request.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Configuration
Containing Type
ConfigHelper<T>

Syntax

public T GetValue(IDocument document, IExecutionContext context, Func<T, T> postProcessing = null)

Parameters

Name Type Description
document IDocument The document.
context IExecutionContext The execution context.
postProcessing Func<T, T> An optional post-processing function.

Return Value

Type Description
T The result value.
GitHub