1 write to _threadingContext
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\InlineRenameSession.cs (1)
153
_threadingContext
= threadingContext;
32 references to _threadingContext
Microsoft.CodeAnalysis.EditorFeatures (32)
InlineRename\InlineRenameSession.cs (25)
267
_threadingContext
.ThrowIfNotOnUIThread();
291
_threadingContext
.ThrowIfNotOnUIThread();
306
_threadingContext
.ThrowIfNotOnUIThread();
314
AllRenameLocationsTask =
_threadingContext
.JoinableTaskFactory.RunAsync(async () =>
328
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, cancellationToken);
367
_threadingContext
.ThrowIfNotOnUIThread();
376
_threadingContext
.ThrowIfNotOnUIThread();
412
_threadingContext
.ThrowIfNotOnUIThread();
430
_threadingContext
.ThrowIfNotOnUIThread();
458
_threadingContext
.ThrowIfNotOnUIThread();
466
_threadingContext
.ThrowIfNotOnUIThread();
514
_threadingContext
.JoinableTaskFactory.RunAsync(async () =>
516
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true);
524
_threadingContext
.ThrowIfNotOnUIThread();
542
_conflictResolutionTask =
_threadingContext
.JoinableTaskFactory.RunAsync(async () =>
571
var replacementOperation =
_threadingContext
.JoinableTaskFactory.RunAsync(async () =>
598
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
619
_threadingContext
.ThrowIfNotOnUIThread();
658
_threadingContext
.ThrowIfNotOnUIThread();
675
_threadingContext
.ThrowIfNotOnUIThread();
750
return
_threadingContext
.JoinableTaskFactory.Run(() => CommitWorkerAsync(previewChanges, canUseBackgroundWorkIndicator: false, operationContext));
785
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync();
883
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
909
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
960
_threadingContext
.ThrowIfNotOnUIThread();
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (7)
99
_session.
_threadingContext
.ThrowIfNotOnUIThread();
171
_session.
_threadingContext
.ThrowIfNotOnUIThread();
220
_session.
_threadingContext
.ThrowIfNotOnUIThread();
273
_session.
_threadingContext
.ThrowIfNotOnUIThread();
295
_session.
_threadingContext
.ThrowIfNotOnUIThread();
317
_session.
_threadingContext
.ThrowIfNotOnUIThread();
589
_session.
_threadingContext
.ThrowIfNotOnUIThread();