Replies: 2 comments
-
I /think/
I could be entirely wrong, though. 😄 |
Beta Was this translation helpful? Give feedback.
-
In the answer above, @nils-a wasn't wrong on either count - both the advice on module object-oriented hierarchy and dependencies are correct. However, I think you might be asking a slightly different question. If I'm understanding the question, you want to "insert" a module into an existing pipeline's process phase at a specific position after a If so, the easiest way to do it is with the bootstrapper fluent API and the await Bootstrapper.Factory
// ...
.ModifyPipeline(
"MyPipeline",
pipeline => pipeline.ProcessModules.InsertAfterFirst<ProcessShortcodes>(new MyModule()))
// ... There are a number of other extensions for module lists like It's worth noting that the notion of "dependency" is a little bit of a misnomer when it comes to modules. Pipelines can have dependencies on other pipelines and the engine works out the full dependency chain and throws an error if a circular dependency is discovered. Modules are always sequential within a given pipeline and phase, so module B has a "dependency" on module A if (and only if) module B appears after module A in the sequence of modules for that pipeline and phase. If this question is about how to make a module in one pipeline "wait" until a module in a different pipeline is complete (I.e. if the Does that answer the question? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a pipeline defined with a lot of
ProcessModules
. I need to create another process module that will run afterProcessShortcodes
.I have read the documentation, and it seems to be possible to do it, but I cannot find a way to set things up.
Can you help me with this?
Beta Was this translation helpful? Give feedback.
All reactions