コード例 #1
0
 /// <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);
 }
コード例 #2
0
ファイル: VanillaIoAdapter.cs プロジェクト: danfma/db4o-net
 /// <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))
 {
 }
コード例 #3
0
ファイル: DebugIoAdapter.cs プロジェクト: git-thinh/limada
 /// <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))
 {
 }
コード例 #4
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))
		{
		}
コード例 #5
0
ファイル: CachedIoAdapter.cs プロジェクト: masroore/db4o
 /// <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);
 }
コード例 #6
0
ファイル: CachedIoAdapter.cs プロジェクト: pondyond/db4o
 /// <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);
 }
コード例 #7
0
ファイル: VanillaIoAdapter.cs プロジェクト: masroore/db4o
 /// <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))
 {
 }
コード例 #8
0
		/// <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)
		{
		}
コード例 #9
0
 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)
 {
 }