internal HttpModuleCollection CreateModules()
 {
     HttpModuleCollection modules = new HttpModuleCollection();
     foreach (HttpModuleAction action in this.Modules)
     {
         modules.AddModule(action.Entry.ModuleName, action.Entry.Create());
     }
     modules.AddModule("DefaultAuthentication", DefaultAuthenticationModule.CreateDefaultAuthenticationModuleWithAssert());
     return modules;
 }
        HttpModuleCollection BuildIntegratedModuleCollection(List<ModuleConfigurationInfo> moduleList) {
            HttpModuleCollection modules = new HttpModuleCollection();

            foreach(ModuleConfigurationInfo mod in moduleList) {
#if DBG
                Debug.Trace("NativeConfig", "Runtime module: " + mod.Name + " of type " + mod.Type + "\n");
#endif
                ModulesEntry currentModule = new ModulesEntry(mod.Name, mod.Type, "type", null);

                modules.AddModule(currentModule.ModuleName, currentModule.Create());
            }

            return modules;
        }
        // instantiates modules that have been added to the dynamic registry (classic pipeline)
        private HttpModuleCollection CreateDynamicModules() {
            HttpModuleCollection moduleCollection = new HttpModuleCollection();

            foreach (DynamicModuleRegistryEntry entry in _dynamicModuleRegistry.LockAndFetchList()) {
                HttpModuleAction modAction = new HttpModuleAction(entry.Name, entry.Type);
                moduleCollection.AddModule(modAction.Entry.ModuleName, modAction.Entry.Create());
            }

            return moduleCollection;
        }
 private HttpModuleCollection BuildIntegratedModuleCollection(List<ModuleConfigurationInfo> moduleList)
 {
     HttpModuleCollection modules = new HttpModuleCollection();
     foreach (ModuleConfigurationInfo info in moduleList)
     {
         ModulesEntry entry = new ModulesEntry(info.Name, info.Type, "type", null);
         modules.AddModule(entry.ModuleName, entry.Create());
     }
     return modules;
 }