1 implementation of JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ThreadingContext.cs (1)
54
public JoinableTaskFactory
JoinableTaskFactory
22 references to JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (22)
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (1)
65
await ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
62
_threadingContext.
JoinableTaskFactory
.Run(async () =>
ExtractMethod\ExtractMethodCommandHandler.cs (3)
91
_threadingContext.
JoinableTaskFactory
.Run(() => _renameService.ActiveSession.CommitAsync(previewChanges: false, context.OperationContext));
155
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
202
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
Host\IStreamingFindReferencesPresenter.cs (1)
127
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
InlineRename\InlineRenameService.cs (1)
151
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
IntelliSense\AsyncCompletion\CommitManager.cs (1)
331
_ = _threadingContext.
JoinableTaskFactory
.RunAsync(async () =>
IntelliSense\ModelComputation.cs (1)
158
await ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(alwaysYield: true, _stopCancellationToken);
Navigation\IDocumentNavigationServiceExtensions.cs (1)
23
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
NavigationBar\NavigationBarController_ModelComputation.cs (2)
79
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable();
180
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (4)
70
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(CancellationToken.None);
141
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
164
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
177
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(CancellationToken.None);
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
82
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable();
113
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable();
Shared\Extensions\ITextSnapshotExtensions.cs (1)
97
return threadingContext.
JoinableTaskFactory
.Run(() =>
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
740
tagTrees = _dataSource.ThreadingContext.
JoinableTaskFactory
.Run(() =>
Tagging\TaggerMainThreadManager.cs (1)
117
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(queueCancellationToken);
Workspaces\ITextBufferVisibilityTracker.cs (1)
83
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable();