示例#1
0
        public ISaveEntityDatabasePipeline CreateDefaultSavePipeline(IDependencyContainer container)
        {
            var mappingRegistry       = new MappingRegistry(container.Resolve <EverythingTypeMapper>());
            var primitiveTypeMappings = container.ResolveAll <IBinaryPrimitiveHandler>();
            var everythingSerializer  = new LazyBinarySerializer(mappingRegistry, primitiveTypeMappings);
            var persistitySerializer  = new BinarySerializer(everythingSerializer);

            return(CreateSavePipeline(container, persistitySerializer, DefaultEntityDatabaseFile));
        }
示例#2
0
 public BinarySerializer(LazyDataSerializer internalSerializer)
 {
     InternalSerializer = internalSerializer;
 }