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

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

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