Composite Module Enumerator


The composite module enumerator makes it possible to combine several module enumerator instances into one module enumerator. This makes it easier for developers to for example combine both fixed modules and modules loaded through the ConfigurationModuleEnumerator.

How to use

In your Bootstrapper class make a GetModuleEnumerator implementation:

protected override IModuleEnumerator GetModuleEnumerator()
    CompositeModuleEnumerator enumerator = new CompositeModuleEnumerator();
    enumerator.ChildEnumerators.Add(new StaticModuleEnumerator());
    enumerator.ChildEnumerators.Add(new ConfigurationModuleEnumerator());

    return enumerator;

Last edited Jul 11, 2008 at 8:07 PM by WMeints, version 1


No comments yet.