public RenderSectionWithDefinitionsReader(IXmlLoadLogger logger, IConditionParser conditionParser, IComponentPointParser componentPointParser, IComponentPointTemplateParser componentPointTemplateParser, ISectionRegistry sectionRegistry) : base(logger, conditionParser, componentPointParser) { this.logger = logger; this.conditionParser = conditionParser; this.componentPointParser = componentPointParser; this.componentPointTemplateParser = componentPointTemplateParser; definitionsSection = sectionRegistry.GetSection <DefinitionsSection>(); availableDefinitions = definitionsSection?.Definitions.Select(x => x.Key).ToHashSet() ?? new HashSet <string>(); }
public static bool TryParse(this IComponentPointTemplateParser parser, XAttribute location, out ComponentPointTemplate componentPointTemplate) { return(parser.TryParse(location.Value, location, out componentPointTemplate)); }
public static bool TryParse(this IComponentPointTemplateParser parser, XAttribute x, XAttribute y, out ComponentPointTemplate componentPointTemplate) { return(parser.TryParse(x.Value, y.Value, x, y, out componentPointTemplate)); }