public FlexibleStructureBuilder() { _typeConfigurations = new StructureTypeConfigurations(); _typeFactory = new StructureTypeFactory(); _schemaFactory = new StructureSchemaFactory(); _indexesFactory = new StructureIndexesFactory(); _schemas = new ConcurrentDictionary <Type, IStructureSchema>(); }
private StructureBuilder( IDictionary <Type, IStructureSchema> schemas, IStructureIndexesFactory indexesFactory = null) { EnsureArg.HasItems(schemas, nameof(schemas)); Schemas = schemas; IndexesFactory = indexesFactory ?? new StructureIndexesFactory(); }