Exemplo n.º 1
0
        public FubuMvcPackageFacility()
        {
            var applicationPath = GetApplicationPath();

            if (applicationPath.IsNotEmpty())
            {
                // Development mode
                Loader(new LinkedFolderPackageLoader(GetApplicationPath(), folder => folder));

                // Production mode with zip files and standalone assemblies (e.g., Spark.Web.FubuMVC)
                Loader(new ZipFilePackageLoader());

                var standaloneLoader = new StandaloneAssemblyPackageLoader(new StandaloneAssemblyFinder());
                Loader(standaloneLoader);
            }

            Activator(new VirtualPathProviderActivator());
        }
Exemplo n.º 2
0
        public FubuMvcPackageFacility()
        {
            var applicationPath = GetApplicationPath();

            if (applicationPath.IsNotEmpty())
            {
                // Development mode
                Loader(new LinkedFolderPackageLoader(GetApplicationPath(), folder => folder));

                // Production mode with zip files and standalone assemblies (e.g., Spark.Web.FubuMVC)
                Loader(new ZipFilePackageLoader());

                var standaloneLoader = new StandaloneAssemblyPackageLoader(new StandaloneAssemblyFinder());
                Loader(standaloneLoader);
            }


            Activator(new VirtualPathProviderActivator());
        }