void OnCompleted(AtomicChange change) { if (this.completed != null) { this.completed(change); } this.isCompleted = true; }
public void Dispose() { if (!this.isCompleted) { this.change.Reject(RejectReason.RejectChanges); } //clear changes list if any this.change = null; this.OnDisposed(); }