Catel.MVVM.ViewModelBase.OnThrottlingTimerTick C# (CSharp) Method

OnThrottlingTimerTick() private method

Called when the throttling timer ticks.
private OnThrottlingTimerTick ( ) : void
return void
        private void OnThrottlingTimerTick()
        {
            Dictionary<string, DateTime> throttlingQueue;

            lock (_throttlingLockObject)
            {
                throttlingQueue = _throttlingQueue;
                _throttlingQueue = new Dictionary<string, DateTime>();
            }

            if (throttlingQueue.Count == 0)
            {
                return;
            }

            _isHandlingThrottlingNotifications = true;

            foreach (var throttledProperty in throttlingQueue)
            {
                RaisePropertyChanged(throttledProperty.Key);
            }

            _isHandlingThrottlingNotifications = false;
        }