public void Dispose() { _disposed = true; _prevScopeDispose.Dispose(); if (RequiredPrefix.HasValue) { RequiredPrefix.Release(_tx.Allocator); } OnDisposal?.Invoke(this); }
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); }