Пример #1
0
 /// <summary>
 /// Closes cursor and frees all resources.
 /// </summary>
 public void Dispose()
 {
     if (_cursorHandle == null)
     {
         return;
     }
     _cursorHandle.Dispose();
     _cursorHandle = null;
     _cursorResult = null;
 }
Пример #2
0
 internal unsafe Cursor(CursorHandle cursorHandle, QueryFunctions.CursorResultDelegate cursorResult, int count, JsonSerializer serializer)
     : base(cursorHandle, cursorResult, count)
 {
     Serializer = serializer;
 }
Пример #3
0
 internal unsafe CursorBase(CursorHandle cursorHandle, QueryFunctions.CursorResultDelegate cursorResult, int count)
 {
     _cursorHandle = cursorHandle;
     _cursorResult = cursorResult;
     _count        = count;
 }