Ejemplo n.º 1
0
 public CvlFieldParser(
     CvlRepository cvlRepository,
     IDictionary <string, CultureInfo> supportedCultures)
 {
     _cvlRepository     = cvlRepository;
     _supportedCultures = supportedCultures;
 }
Ejemplo n.º 2
0
        public FieldParserFactory(
            CvlRepository cvlRepository,
            CachedXPathCompiler xPathCompiler,
            ImportMapping importMapping)
        {
            _cvlRepository = cvlRepository;
            _xPathCompiler = xPathCompiler;

            _cachedFieldParsers = new Dictionary <string, IFieldParser>();
            _supportedCultures  = importMapping.Languages?.ToDictionary(
                lang => lang.Original,
                lang => CultureInfo.GetCultureInfo(lang.InRiver));
        }
Ejemplo n.º 3
0
 public CatalogDocument(inRiverContext context)
 {
     _cvlRepository     = new CvlRepository(context.ExtensionManager);
     _namespaceResolver = new XmlNamespaceManager(new NameTable());
 }