Beispiel #1
0
            /// <summary>
            /// Called by derived types to enqueue tags re-calculation request
            /// </summary>
            private void RecalculateTagsOnChanged(TaggerEventArgs e)
            {
                // First, cancel any previous requests (either still queued, or started).  We no longer
                // want to continue it if new changes have come in.
                _workQueue.CancelCurrentWork();

                RegisterNotification(
                    RecomputeTagsForeground,
                    (int)e.Delay.ComputeTimeDelay(_subjectBuffer).TotalMilliseconds,
                    _workQueue.CancellationToken);
            }
 private void OnEventSourceChanged(object sender, TaggerEventArgs e)
 => RecalculateTagsOnChanged(e);