public void RegisterModuleActivator(IModuleActivator activator) { if (!m_listModuleActivators.Contains(activator)) { m_listModuleActivators.Add(activator); } }
public NancyApplication(IModuleActivator activator) { this.activator = activator; var types = (from assembly in AppDomain.CurrentDomain.GetAssemblies() from type in assembly.GetTypes() where !type.IsAbstract select type).ToList(); this.templateProcessors = LoadTemplates(types); this.modules = LoadModules(types); }