Execute.

Execute(Func<IReadOnlyList<IDocument>, IExecutionContext, Object, Object>) Constructor

Summary

Specifies a delegate that should be invoked for all input documents. If the delegate returns a IEnumerable<IDocument> or Wyam.Common.Documents.IDocument, the document(s) will be the output(s) of this module. If the delegate returns null or anything else, this module will just output the input documents. The third parameter of the delegate is primarly to aid overload resolution between this and the other constructors. The value null will be passed for now, though it might be used for something else in a future version.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Extensibility
Containing Type
Execute

Syntax

public Execute(Func<IReadOnlyList<IDocument>, IExecutionContext, Object, Object> execute)

Parameters

Name Type Description
execute Func<IReadOnlyList<IDocument>, IExecutionContext, Object, Object> A delegate to invoke that should return a IEnumerable<IDocument>, Wyam.Common.Documents.IDocument, or null.

Return Value

Type Description
void
GitHub