ExecuteModulesAsync(IExecutionContext, IEnumerable<IModule>, IEnumerable<KeyValuePair<string, object>>) Method
Executes the specified modules with an single initial input document with optional additional metadata and returns the result documents.

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<IModule> The modules to execute.
metadata IEnumerable<KeyValuePair<string, object>> The metadata to use.

Return Value

Type Description
Task<ImmutableArray<IDocument>> The result documents from the executed modules.