public Manager() { configuration = LoadConfigurationFromWebConfig(); // Module files will be cached in isolated storage. storage = IsolatedStorageFile.GetUserStoreForDomain(); coffeeScriptCompiler = new CoffeeScriptCompiler(File.ReadAllText); scriptModuleContainer = BuildScriptModuleContainer(storage, configuration); stylesheetModuleContainer = BuildStylesheetModuleContainer(storage, configuration); scriptModuleContainer.UpdateStorage("scripts.xml"); stylesheetModuleContainer.UpdateStorage("stylesheets.xml"); }
public Given_KnapsackSection(ModuleMode moduleMode) { section = new KnapsackSection { ModuleMode = moduleMode }; }
ModuleContainer BuildScriptModuleContainer(IsolatedStorageFile storage, KnapsackSection config) { var builder = new ScriptModuleContainerBuilder(storage, HttpRuntime.AppDomainAppPath, coffeeScriptCompiler); return BuildModuleContainer(builder, config.Scripts, "scripts"); }
ModuleContainer BuildStylesheetModuleContainer(IsolatedStorageFile storage, KnapsackSection config) { var builder = new StylesheetModuleContainerBuilder(storage, HttpRuntime.AppDomainAppPath, HttpRuntime.AppDomainAppVirtualPath); return BuildModuleContainer(builder, config.Styles, "styles"); }