Example #1
0
        public static void LoadViewEngine()
        {
            var viewEngineTypes = ApplicationAssemblyLoader.TypesOf(typeof(IViewEngine));

            foreach (var viewEngineType in viewEngineTypes)
            {
                var viewEngine = (IViewEngine)Activator.CreateInstance(viewEngineType);
                viewEngineCache.Add(viewEngine.ExtensionName, viewEngine);
            }
        }
Example #2
0
 public virtual void Initialise()
 {
     ApplicationAssemblyLoader.ResolveAssembly(this.GetRootPath());
     RuntimeManager.LoadRuntimeFileSystem(this.GetRootPath());
     ViewEngineFactory.LoadViewEngine();
 }