1 write to ThreadingContext
Microsoft.VisualStudio.LanguageServices (1)
FindReferences\StreamingFindUsagesPresenter.cs (1)
117ThreadingContext = threadingContext;
20 references to ThreadingContext
Microsoft.VisualStudio.LanguageServices (20)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (9)
130presenter.ThreadingContext.ThrowIfNotOnUIThread(); 239this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 248this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 254this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 274this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 289this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 298this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 334this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 649this.Presenter.ThreadingContext.ThrowIfNotOnUIThread();
FindReferences\Entries\DocumentSpanEntry.cs (2)
181this.Presenter.ThreadingContext.ThrowIfNotOnUIThread(); 190var excerpt = this.Presenter.ThreadingContext.JoinableTaskFactory.Run(() => excerptService.TryExcerptAsync(document, sourceSpan, ExcerptMode.Tooltip, classificationOptions, CancellationToken.None));
FindReferences\StreamingFindUsagesPresenter.cs (9)
126ThreadingContext.ThrowIfNotOnUIThread(); 161ThreadingContext.ThrowIfNotOnUIThread(); 174ThreadingContext.ThrowIfNotOnUIThread(); 223this, window, _customColumns, _globalOptions, includeContainingTypeAndMemberColumns, includeKindColumn, ThreadingContext); 234this, window, _customColumns, _globalOptions, includeContainingTypeAndMemberColumns, includeKindColumn, ThreadingContext); 244ThreadingContext.ThrowIfNotOnUIThread(); 291ThreadingContext.ThrowIfNotOnUIThread(); 304ThreadingContext.ThrowIfNotOnUIThread(); 324await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);