ConfigExtensions.

Invoke<T>(ContextConfig, 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 ContextConfig config, IExecutionContext context, string errorDetails)

Type Parameters

Name Description
T The desired result type.

Parameters

Name Type Description
config ContextConfig The delegate.
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