Dispose() public method

public Dispose ( ) : void
return void
Ejemplo n.º 1
0
        /// <summary>
        /// Dispose
        /// </summary>
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            DBisOperable       = false;
            DBisOperableReason = "DBreezeEngine.Dispose";
            disposed           = true;

            //Disposing all transactions
            _transactionsCoordinator.StopEngine();

            //Disposing Schema
            DBreezeSchema.Dispose();

            //Disposing Trnsactional Journal, may be later move journal into transactionsCoordinator
            _transactionsJournal.Dispose();

            //Disposing Configuration
            Configuration.Dispose();

            //MUST BE IN THE END OF ALL.Disposing transaction locker
            _transactionTablesLocker.Dispose();

            //Disposing DeferredIndexer
            DeferredIndexer.Dispose();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Dispose
        /// </summary>
        public void Dispose()
        {
            if (System.Threading.Interlocked.CompareExchange(ref disposed, 1, 0) != 0)
            {
                return;
            }

            //if (Disposed)
            //    return;

            DBisOperable       = false;
            DBisOperableReason = "DBreezeEngine.Dispose";
            //Disposed = true;

            //Disposing all transactions
            _transactionsCoordinator.StopEngine();

            //Disposing Schema
            DBreezeSchema.Dispose();

            //Disposing Trnsactional Journal, may be later move journal into transactionsCoordinator
            _transactionsJournal.Dispose();

            //Disposing Configuration
            Configuration.Dispose();

            //MUST BE IN THE END OF ALL.Disposing transaction locker
            _transactionTablesLocker.Dispose();

            //Disposing DeferredIndexer
            DeferredIndexer.Dispose();

            //Disposing Resources
            Resources.Dispose();
        }