10 references to ThreadingContext
Microsoft.CodeAnalysis.EditorFeatures (10)
Suggestions\SuggestedActions\EditorSuggestedAction.cs (5)
122
await this.
ThreadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
134
await this.
ThreadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
148
this.
ThreadingContext
.ThrowIfNotOnUIThread();
216
await
ThreadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
320
=> new TrivialSuggestedAction(action.
ThreadingContext
, action.SourceProvider, action.OriginalSolution, action.SubjectBuffer, action.Provider, codeAction);
Suggestions\SuggestedActions\EditorSuggestedActionForRefactorOrFixAll.cs (1)
52
await this.
ThreadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Suggestions\SuggestedActions\EditorSuggestedActionWithNestedFlavors.cs (4)
64
this.
ThreadingContext
.ThrowIfNotOnUIThread();
157
this.
ThreadingContext
.ThrowIfNotOnUIThread();
183
this.
ThreadingContext
.ThrowIfNotOnUIThread();
191
this.
ThreadingContext
.ThrowIfNotOnUIThread();