internal SingleFileStore(SingleFileStoreSystem system, string name, int id)
     : base(system.IsReadOnly)
 {
     this.system = system;
     Name        = name;
     Id          = id;
 }
Example #2
0
 internal SingleFileStore(SingleFileStoreSystem system, string name, int id)
     : base(system.IsReadOnly)
 {
     this.system = system;
     Name = name;
     Id = id;
 }
        protected override void Dispose(bool disposing)
        {
            if (!disposed)
            {
                base.Dispose(disposing);

                if (disposing)
                {
                    lock (CheckPointLock) {
                        if (dataStream != null)
                        {
                            dataStream.Dispose();
                        }
                    }
                }

                dataStream = null;
                system     = null;
                IsOpen     = false;
                disposed   = true;
            }
        }
Example #4
0
        protected override void Dispose(bool disposing)
        {
            if (!disposed) {
                base.Dispose(disposing);

                if (disposing) {
                    lock (CheckPointLock) {
                        if (dataStream != null)
                            dataStream.Dispose();
                    }
                }

                dataStream = null;
                system = null;
                IsOpen = false;
                disposed = true;
            }
        }