コード例 #1
0
 public SquiggleQuickInfoSource(
     SquiggleQuickInfoSourceProvider componentContext,
     ITextBuffer textBuffer)
 {
     this.componentContext = componentContext
                             ?? throw new ArgumentNullException(nameof(componentContext));
     this.textBuffer = textBuffer
                       ?? throw new ArgumentNullException(nameof(textBuffer));
 }
コード例 #2
0
        public void Dispose()
        {
            if (this.disposed)
            {
                return;
            }

            this.disposed = true;

            Debug.Assert(this.componentContext.JoinableTaskContext.IsOnMainThread);

            // Get rid of the tag aggregator, if we created it.
            if (this.tagAggregator != null)
            {
                this.tagAggregator.Dispose();
                this.tagAggregator         = null;
                this.tagAggregatorTextView = null;
            }

            this.componentContext = null;
            this.textBuffer       = null;
        }