Skip to content

Statiq does not see pipelines after engine.Pipelines.Clear() #144

Answered by daveaglick
juchom asked this question in Q&A
Discussion options

You must be logged in to vote

At first glance I think what's going on here is that the fluent pipeline configuration methods like AddPipeline work by adding the specified pipeline to the dependency injection container, which the engine then uses to get pipelines when it's created. The confusing part here is that the fluent methods aren't necessarily called in the order they're specified in the chain (I.e. they're all lazy). All the AddPipeline() and related methods do their work before the ConfigureEngine() call, even if they're called later in the fluent chain. So in your second example, the MyPipeline pipeline does get added, it just gets removed again inside the ConfigureEngine() call.

To do what you want, the tric…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@juchom
Comment options

@daveaglick
Comment options

@juchom
Comment options

@daveaglick
Comment options

Answer selected by juchom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants