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