Ejemplo n.º 1
0
        T CreateApplication()
        {
            lock (creationLock)
            {
                var cacheVersion           = GetConfigurationVersion();
                var settings               = new CassetteSettings(cacheVersion);
                var bundleContainerFactory = settings.GetBundleContainerFactory(CassetteConfigurations);
                var bundleContainer        = bundleContainerFactory.CreateBundleContainer();

                Trace.Source.TraceInformation("IsDebuggingEnabled: {0}", settings.IsDebuggingEnabled);
                Trace.Source.TraceInformation("Cache version: {0}", cacheVersion);
                Trace.Source.TraceInformation("Creating Cassette application object");

                return(CreateCassetteApplicationCore(bundleContainer, settings));
            }
        }
        IBundleContainer CreateBundleContainer(IEnumerable <Bundle> bundles)
        {
            var factory = settings.GetBundleContainerFactory();

            return(factory.Create(bundles, settings));
        }