Execute.

Execute(ContextConfig) Constructor

Summary

Specifies a delegate that should be invoked once 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 a IEnumerable<IModule> or Wyam.Common.Modules.IModule, the module(s) will be executed with the input documents as their input and the results will be the output of this module. If the delegate returns null, this module will just output the input documents. If anything else is returned, an exception will be thrown.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Extensibility
Containing Type
Execute

Syntax

public Execute(ContextConfig execute)

Parameters

Name Type Description
execute ContextConfig A delegate to invoke that should return a IEnumerable<IDocument>, Wyam.Common.Documents.IDocument, IEnumerable<IModule>, Wyam.Common.Modules.IModule, or null.

Return Value

Type Description
void
GitHub