Exemple #1
0
        public void Dispose()
        {
            _disposed = true;
            _prevScopeDispose.Dispose();

            if (RequiredPrefix.HasValue)
            {
                RequiredPrefix.Release(_tx.Allocator);
            }

            OnDisposal?.Invoke(this);
        }
Exemple #2
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     _disposed = true;
     if (RequiredPrefix.HasValue)
     {
         RequiredPrefix.Release(_tx.Allocator);
     }
     if (MaxKey.HasValue)
     {
         MaxKey.Release(_tx.Allocator);
     }
     _prevKeyScope.Dispose();
     _cursor.Dispose();
     OnDisposal?.Invoke(this);
 }