Inheritance: System.Configuration.ConfigurationSection
Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public Given_KnapsackSection(ModuleMode moduleMode)
 {
     section = new KnapsackSection { ModuleMode = moduleMode };
 }
Ejemplo n.º 3
0
 ModuleContainer BuildScriptModuleContainer(IsolatedStorageFile storage, KnapsackSection config)
 {
     var builder = new ScriptModuleContainerBuilder(storage, HttpRuntime.AppDomainAppPath, coffeeScriptCompiler);
     return BuildModuleContainer(builder, config.Scripts, "scripts");
 }
Ejemplo n.º 4
0
 ModuleContainer BuildStylesheetModuleContainer(IsolatedStorageFile storage, KnapsackSection config)
 {
     var builder = new StylesheetModuleContainerBuilder(storage, HttpRuntime.AppDomainAppPath, HttpRuntime.AppDomainAppVirtualPath);
     return BuildModuleContainer(builder, config.Styles, "styles");
 }
Ejemplo n.º 5
0
 public Given_KnapsackSection(ModuleMode moduleMode)
 {
     section = new KnapsackSection {
         ModuleMode = moduleMode
     };
 }