コード例 #1
0
ファイル: Notification.cs プロジェクト: daleghent/NINA
 public void Dispose()
 {
     _interval.Stop();
     _interval = null;
     _notifications?.Clear();
     _notifications = null;
 }
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _disposed = true;
            _interval?.Stop();
            _interval = null;
            _notifications?.Clear();
            _notifications = null;
            _notificationsPending?.Clear();
        }
コード例 #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _interval?.Stop();
                _interval = null;
                _notifications?.Clear();
                _notifications = null;
                _notificationsPending?.Clear();
            }

            _disposed = true;
        }
 private void TimerStop()
 {
     _interval.Stop();
 }