public virtual void Initialize(RachisConsensus parent, ClusterOperationContext context, ClusterChanges changes) { _parent = parent; ContextPoolForReadOnlyOperations = _parent.ContextPool; Changes = changes; Validator = InitializeValidator(); }
public override void Dispose() { _storageEnvironment = null; _changes = null; base.Dispose(); }
public ClusterTransaction(Transaction transaction, ClusterChanges clusterChanges) : base(transaction) { _clusterChanges = clusterChanges ?? throw new System.ArgumentNullException(nameof(clusterChanges)); }
public ClusterContextPool(ClusterChanges changes, StorageEnvironment storageEnvironment, Size?maxContextSizeToKeepInMb = null) : base(maxContextSizeToKeepInMb) { _changes = changes ?? throw new ArgumentNullException(nameof(changes)); _storageEnvironment = storageEnvironment ?? throw new ArgumentNullException(nameof(storageEnvironment)); }
public ClusterOperationContext(ClusterChanges changes, StorageEnvironment environment, int initialSize, int longLivedSize, int maxNumberOfAllocatedStringValues, SharedMultipleUseFlag lowMemoryFlag) : base(initialSize, longLivedSize, maxNumberOfAllocatedStringValues, lowMemoryFlag) { _changes = changes ?? throw new ArgumentNullException(nameof(changes)); Environment = environment ?? throw new ArgumentNullException(nameof(environment)); }