Esempio n. 1
0
        protected override void OnDisable()
        {
            base.OnDisable();

            if (_pointReader != null)
            {
                _pointReader.Dispose();
            }

            if (_currentlyUpdating.Contains(this))
            {
                _currentlyUpdating.Remove(this);
            }
        }
 /// <summary>
 /// Cancel the reader/writer threads
 /// </summary>
 public void Cancel()
 {
     _cancel = true;
     _pointReader?.Dispose();
 }