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

            Schemas        = schemas;
            IndexesFactory = indexesFactory ?? new StructureIndexesFactory();
        }