Executes the specified modules with an single initial input document with optional additional metadata and returns the result documents.
- Namespace
- Statiq
.Common - Containing Type
- I
Execution Context Execute Modules Extensions
Syntax
public static Task<ImmutableArray<IDocument>> ExecuteModulesAsync(this IExecutionContext executionContext, IEnumerable<IModule> modules, IEnumerable<KeyValuePair<string, object>> metadata)
Parameters
| Name | Type | Description |
|---|---|---|
| executionContext | IExecutionContext | The execution context. |
| modules | IEnumerable |
The modules to execute. |
| metadata | IEnumerable |
The metadata to use. |
Return Value
| Type | Description |
|---|---|
| Task |
The result documents from the executed modules. |