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