ExecuteBranch Class
Executes "branches" of modules with the input documents and concatenates their outputs.
Namespace
Statiq.Core
Interfaces
Base Types
graph BT Type-->Base0["Module"] click Base0 "/api/Statiq.Common/Module" Base0-->Base1["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type-.->Interface1["IList<ModuleList>"] Type-.->Interface2["ICollection<ModuleList>"] Type-.->Interface3["IEnumerable<ModuleList>"] Type-.->Interface4["IEnumerable"] Type["ExecuteBranch"] class Type type-node

Syntax

public class ExecuteBranch : Module, IModule, IList<ModuleList>, ICollection<ModuleList>, 
    IEnumerable<ModuleList>, IEnumerable

Constructors

Properties

Name Property Type Summary
Count int
IsReadOnly bool
this[int] ModuleList

Methods

Name Return Value Summary
Add(IModule) void
Adds a module to the initial condition. This method is mainly to support collection initialization of the module.
Add(ModuleList) void
AfterExecution(IExecutionContext, ExecutionOutputs) void
Called after each module execution.
Inherited from Module
AfterExecutionAsync(IExecutionContext, ExecutionOutputs) Task
Called after each module execution.
Inherited from Module
BeforeExecution(IExecutionContext) void
Called before each module execution.
Inherited from Module
BeforeExecutionAsync(IExecutionContext) Task
Called before each module execution.
Inherited from Module
Branch(IEnumerable<IModule>) ExecuteBranch
Branch(IModule[]) ExecuteBranch
Clear() void
Contains(ModuleList) bool
CopyTo(ModuleList[], int) void
ExecuteAsync(IExecutionContext) Task<IEnumerable<IDocument>>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
ExecuteContextAsync(IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module once for all input documents.
ExecuteInputAsync(IDocument, IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module.
Inherited from Module
Finally(IExecutionContext) void
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
FinallyAsync(IExecutionContext) Task
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
GetEnumerator() IEnumerator<ModuleList>
IndexOf(ModuleList) int
Insert(int, ModuleList) void
Remove(ModuleList) bool
RemoveAt(int) void

Extension Methods

Name Value Summary
AddRange<ModuleList>(IEnumerable<ModuleList>) void
Adds a range of values to a collection.
AddRange<ModuleList>(ModuleList[]) void
Adds a range of values to a collection.
Concat<ModuleList>(ModuleList) IEnumerable<T>
ForEachDocument() ForEachDocument
GetNext<ModuleList>(ModuleList, IEqualityComparer<ModuleList>) T
GetNext<ModuleList>(ModuleList) T
GetPrevious<ModuleList>(ModuleList, IEqualityComparer<ModuleList>) T
GetPrevious<ModuleList>(ModuleList) T
GroupByMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, TElement>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
GroupByMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, TElement>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
GroupByMany<ModuleList, TKey>(Func<ModuleList, IEnumerable<TKey>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
GroupByMany<ModuleList, TKey>(Func<ModuleList, IEnumerable<TKey>>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys.
GroupByManyToMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, IEnumerable<TElement>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
GroupByManyToMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, IEnumerable<TElement>>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ParallelForEachAsync<ModuleList>(Func<ModuleList, Task>, CancellationToken) Task
ParallelSelectAsync<ModuleList, TResult>(Func<ModuleList, Task<TResult>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector in parallel.
ParallelSelectManyAsync<ModuleList, TResult>(Func<ModuleList, Task<IEnumerable<TResult>>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector that returns multiple results in parallel.
ParallelWhereAsync<ModuleList>(Func<ModuleList, Task<bool>>, CancellationToken) Task<IEnumerable<TSource>>
RemoveAll<ModuleList>(Func<ModuleList, bool>) int
Removes all items that match a predicate from a collection.
StartsWith<ModuleList>(IEnumerable<ModuleList>, IEqualityComparer<ModuleList>) bool
Determines whether the items starts with the specified values.
StartsWith<ModuleList>(IEnumerable<ModuleList>) bool
Determines whether the items starts with the specified values.
ThrowIfNull<ExecuteBranch>(string) T
ToDocument<ExecuteBranch>(IContentProvider) IDocument
ToDocument<ExecuteBranch>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<ExecuteBranch>(NormalizedPath, IContentProvider) IDocument
ToDocument<ExecuteBranch>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<ExecuteBranch>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<ExecuteBranch>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocuments<ModuleList>(Func<ModuleList, IContentProvider>) IEnumerable<IDocument>
ToDocuments<ModuleList>(Func<ModuleList, IEnumerable<KeyValuePair<string, object>>>, Func<ModuleList, IContentProvider>) IEnumerable<IDocument>
ToDocuments<ModuleList>(Func<ModuleList, NormalizedPath>, Func<ModuleList, IContentProvider>) IEnumerable<IDocument>
ToDocuments<ModuleList>(Func<ModuleList, NormalizedPath>, Func<ModuleList, IEnumerable<KeyValuePair<string, object>>>, Func<ModuleList, IContentProvider>) IEnumerable<IDocument>
ToDocuments<ModuleList>(Func<ModuleList, NormalizedPath>, Func<ModuleList, NormalizedPath>, Func<ModuleList, IContentProvider>) IEnumerable<IDocument>
ToDocuments<ModuleList>(Func<ModuleList, NormalizedPath>, Func<ModuleList, NormalizedPath>, Func<ModuleList, IEnumerable<KeyValuePair<string, object>>>, Func<ModuleList, IContentProvider>) IEnumerable<IDocument>
ToLookupMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, TElement>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
ToLookupMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, TElement>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
ToLookupMany<ModuleList, TKey>(Func<ModuleList, IEnumerable<TKey>>, IEqualityComparer<TKey>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
ToLookupMany<ModuleList, TKey>(Func<ModuleList, IEnumerable<TKey>>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys.
ToLookupManyToMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, IEnumerable<TElement>>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
ToLookupManyToMany<ModuleList, TKey, TElement>(Func<ModuleList, IEnumerable<TKey>>, Func<ModuleList, IEnumerable<TElement>>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ToStringTable<ModuleList>(string[], Func<ModuleList, object>[]) string