ModuleCollection

Executes child modules enabling better reuse.
All child modules will be executed as if they were inline. This enables you to specify a sequence of modules outside of a pipeline and then reuse that sequence of modules in multiple pipelines. Note that this module is also handy for wrapping a single module that has a complex configuration if you expect to use it in multiple places.

Examples

 ModuleCollection common = ModuleCollection(ModuleA(), ModuleB(), ModuleC());

 Piplines.Add("A",
     ModuleX(),
     ModuleY(),
     common,
     ModuleZ()
 );

 Piplines.Add("B",
     ModuleX(),
     common,
     ModuleZ()
 );

Usage

  • ModuleCollection(IEnumerable<IModule> modules)

    Creates a module collection with the specified child modules. Any null items in the sequence of modules will be discarded.

    • modules

      The child modules.

  • ModuleCollection(params IModule[] modules)

    Creates a module collection with the specified child modules. Any null items in the sequence of modules will be discarded.

    • modules

      The child modules.

GitHub