예제 #1
0
        /// <summary>
        /// Releases query handle;
        /// </summary>
        /// <filterpriority>2</filterpriority>
        public void Dispose()
        {
            var handle = _handle;
            Thread.MemoryBarrier();

            if (handle == null)
            {
                return;
            }
            handle.Dispose();
            _handle = null;
            _hints = null;
        }
예제 #2
0
 protected QueryBase(Collection collection, byte[] queryAsBson)
 {
     _handle = new QueryHandle(collection, queryAsBson);
     _hints = new QueryHints();
 }