Exemplo n.º 1
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual IBin Open(BinConfiguration config)
 {
     var bin = new IoAdapterBin(_io.Open(config
         .Uri(), config.LockFile(), config.InitialLength(), config.ReadOnly()));
     ((IBlockSize) Environments.My(typeof (IBlockSize))).Register(bin);
     return bin;
 }
Exemplo n.º 2
0
        /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
        public virtual IBin Open(BinConfiguration config)
        {
            var bin = new IoAdapterBin(_io.Open(config
                                                .Uri(), config.LockFile(), config.InitialLength(), config.ReadOnly()));

            ((IBlockSize)Environments.My(typeof(IBlockSize))).Register(bin);
            return(bin);
        }