FilterDestinations Class
Filters the current sequence of documents by destination.
Namespace
Statiq.Core
Interfaces
Base Types
graph BT Type-->Base0["SyncConfigModule<IEnumerable<string>>"] Base0-->Base1["ConfigModule<IEnumerable<string>>"] Base1-->Base2["Module"] click Base2 "/api/Statiq.Common/Module" Base2-->Base3["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type["FilterDestinations"] class Type type-node

Syntax

public class FilterDestinations : SyncConfigModule<IEnumerable<string>>, IModule

Remarks

This module filters documents using "or" logic. If you want to also apply "and" conditions, place additional FilterDestinations modules after this one.

Constructors

Name Summary
FilterDestinations(Config<IEnumerable<string>>) Filters input document by using globbing pattern(s) on the document destination.
FilterDestinations(Config<string>) Filters input document by using globbing pattern(s) on the document destination.
FilterDestinations(IEnumerable<string>) Filters input document by using globbing pattern(s) on the document destination.
FilterDestinations(string[]) Filters input document by using globbing pattern(s) on the document destination.

Methods

Name Return Value Summary
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
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
ExecuteConfig(IDocument, IExecutionContext, IEnumerable<string>) IEnumerable<IDocument>
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

Extension Methods