Summary
If an exception is thrown within the action, an error messages will be sent to the trace output
containing information about the document source, the current module, and the exception message.
The exception will also be re-thrown once the message has been sent to the trace listeners.
Syntax
public static void ParallelForEach(this IExecutionContext context, IEnumerable<IDocument> documents, Action<IDocument> action)
Parameters
Name |
Type |
Description |
context |
IExecutionContext |
The current execution context. |
documents |
IEnumerable<IDocument> |
The documents to be processed. |
action |
Action<IDocument> |
The action to evaluate with the documents. |
Return Value