Example #1
0
 public void RegisterModuleActivator(IModuleActivator activator)
 {
     if (!m_listModuleActivators.Contains(activator))
     {
         m_listModuleActivators.Add(activator);
     }
 }
Example #2
0
        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);
        }