Example #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;
        }
Example #2
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;
        }
Example #3
0
 protected QueryBase(Collection collection, byte[] queryAsBson)
 {
     _handle = new QueryHandle(collection, queryAsBson);
     _hints = new QueryHints();
 }
Example #4
0
 protected QueryBase(Collection collection, byte[] queryAsBson)
 {
     _handle = new QueryHandle(collection, queryAsBson);
     _hints  = new QueryHints();
 }