ConfigExtensions.

Invoke<T>(DocumentConfig, IDocument, IExecutionContext, string) Method

Summary

Invokes the delegate with additional information in the exception message if the conversion fails.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Configuration
Containing Type
ConfigExtensions

Syntax

public static T Invoke<T>(this DocumentConfig config, IDocument document, IExecutionContext context, string errorDetails)

Type Parameters

Name Description
T The desired result type.

Parameters

Name Type Description
config DocumentConfig The delegate.
document IDocument The document.
context IExecutionContext The execution context.
errorDetails string A string to add to the exception message should the conversion fail.

Return Value

Type Description
T A typed result from invoking the delegate.
GitHub