FilterAsync(IEnumerable<IDocument>, ICollection<Config<bool>>, IExecutionContext) Method
Filters the documents using "or" logic on multiple predicates.
Namespace
Statiq.Common
Containing Type
ConfigExtensions

Syntax

public static IAsyncEnumerable<IDocument> FilterAsync(this IEnumerable<IDocument> documents, ICollection<Config<bool>> predicates, IExecutionContext context)

Parameters

Name Type Description
documents IEnumerable<IDocument> The documents to filter.
predicates ICollection<Config<bool>> The predicates to combine.
context IExecutionContext The current execution context.

Return Value

Type Description
IAsyncEnumerable<IDocument> Filtered documents where at least one of the provided predicates is true.