/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 public virtual IBin Open(BinConfiguration config)
 {
     IoAdapterStorage.IoAdapterBin bin = new IoAdapterStorage.IoAdapterBin(_io.Open(config
                                                                                    .Uri(), config.LockFile(), config.InitialLength(), config.ReadOnly()));
     ((IBlockSize)Environments.My(typeof(IBlockSize))).Register(bin);
     return(bin);
 }
Exemple #2
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 protected VanillaIoAdapter(IoAdapter delegateAdapter, string path, bool lockFile,
                            long initialLength, bool readOnly) : this(delegateAdapter.Open(path, lockFile, initialLength
                                                                                           , readOnly))
 {
 }
Exemple #3
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 protected DebugIoAdapter(IoAdapter delegateAdapter, string path, bool lockFile, long
                          initialLength, bool readOnly) : base(delegateAdapter.Open(path, lockFile, initialLength
                                                                                    , readOnly))
 {
 }
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		protected DebugIoAdapter(IoAdapter delegateAdapter, string path, bool lockFile, long
			 initialLength, bool readOnly) : base(delegateAdapter.Open(path, lockFile, initialLength
			, readOnly))
		{
		}
Exemple #5
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 private void InitIOAdaptor(string path, bool lockFile, long initialLength, bool readOnly
     , IoAdapter io)
 {
     _io = io.Open(path, lockFile, initialLength, readOnly);
 }
Exemple #6
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 private void InitIOAdaptor(string path, bool lockFile, long initialLength, bool readOnly
                            , IoAdapter io)
 {
     _io = io.Open(path, lockFile, initialLength, readOnly);
 }
Exemple #7
0
 /// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
 protected VanillaIoAdapter(IoAdapter delegateAdapter, string path, bool lockFile,
     long initialLength, bool readOnly) : this(delegateAdapter.Open(path, lockFile, initialLength
         , readOnly))
 {
 }
		/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
		public DelayingIoAdapter(IoAdapter delegateAdapter, string path, bool lockFile, long
			 initialLength, Delays delays) : this(delegateAdapter.Open(path, lockFile, initialLength
			, false), delays)
		{
		}
 private LoggingIoAdapter(IoAdapter delegateAdapter, string path, bool lockFile, long
      initialLength, string fileName, int config, TextWriter existingOut)
     : this(delegateAdapter.Open(path, lockFile
     , initialLength, false), fileName, config, existingOut)
 {
 }