Пример #1
0
 private RegisteredResources GetRegisteredResources(ResourceRegistryMap registryMap, string registryName)
 {
     return(new RegisteredResources
     {
         Includes = registryMap.GetIncludesFor(registryName).ToList(),
         InlineBlocks = registryMap.GetInlineBlocksFor(registryName).ToList()
     });
 }
        public ConsolidatingResourceRegistryAccessor(AssmanContext context)
        {
            var versioningStrategy = new ConfiguredVersioningStrategy(() => context.Version);

            //TODO: Consider lessening dependency from AssmanContext to just the path resolvers
            _scriptRequirements = new ResourceRequirementCollection();
            _scriptRegistries =
                new ResourceRegistryMap(registryName =>
                    new ConsolidatingResourceRegistry(_scriptRequirements, registryName, context.ScriptPathResolver,
                                                      versioningStrategy));
            _styleRequirements = new ResourceRequirementCollection();
            _styleRegistries = new ResourceRegistryMap(registryName =>
                    new ConsolidatingResourceRegistry(_styleRequirements, registryName, context.StylePathResolver,
                                                      versioningStrategy));
        }
        public ConsolidatingResourceRegistryAccessor(AssmanContext context)
        {
            var versioningStrategy = new ConfiguredVersioningStrategy(() => context.Version);

            //TODO: Consider lessening dependency from AssmanContext to just the path resolvers
            _scriptRequirements = new ResourceRequirementCollection();
            _scriptRegistries   =
                new ResourceRegistryMap(registryName =>
                                        new ConsolidatingResourceRegistry(_scriptRequirements, registryName, context.ScriptPathResolver,
                                                                          versioningStrategy));
            _styleRequirements = new ResourceRequirementCollection();
            _styleRegistries   = new ResourceRegistryMap(registryName =>
                                                         new ConsolidatingResourceRegistry(_styleRequirements, registryName, context.StylePathResolver,
                                                                                           versioningStrategy));
        }
Пример #4
0
 internal WebFormsRegistryAccessor(Control control)
 {
     _control = control;
     _scriptRegistries = new ResourceRegistryMap(CreateScriptRegistry);
     _styleRegistries = new ResourceRegistryMap(CreateStyleRegistry);
 }
 private RegisteredResources GetRegisteredResources(ResourceRegistryMap registryMap, string registryName)
 {
     return new RegisteredResources
     {
         Includes = registryMap.GetIncludesFor(registryName).ToList(),
         InlineBlocks = registryMap.GetInlineBlocksFor(registryName).ToList()
     };
 }