Esempio n. 1
0
 /// <summary>
 /// Tear down the client and dispose of background workers.
 /// </summary>
 public void Dispose()
 {
     if (_ORM != null)
     {
         _ORM.Dispose();
         _ORM = null;
     }
 }
Esempio n. 2
0
        public void Dispose()
        {
            if (_ORM != null)
            {
                _ORM.Dispose();
                _ORM = null;
            }

            if (_StorageDriver != null)
            {
                _StorageDriver = null;
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Tear down IndexEngine and dispose of resources.
        /// </summary>
        /// <param name="disposing">True if disposing of resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                Log("disposing");

                _TokenSource.Cancel();
                _ORM.Dispose();

                lock (_Lock)
                {
                    _DocumentsIndexing = null;
                }
            }
        }