Example #1
0
        void OnCompleted(AtomicChange change)
        {
            if (this.completed != null)
            {
                this.completed(change);
            }

            this.isCompleted = true;
        }
Example #2
0
        public void Dispose()
        {
            if (!this.isCompleted)
            {
                this.change.Reject(RejectReason.RejectChanges);
            }

            //clear changes list if any
            this.change = null;
            this.OnDisposed();
        }