1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\ProjectCodeModelFactory.cs (1)
50
_threadingContext
= threadingContext;
5 references to _threadingContext
Microsoft.VisualStudio.LanguageServices.Implementation (5)
CodeModel\ProjectCodeModelFactory.cs (5)
71
Debug.Assert(!
_threadingContext
.JoinableTaskContext.IsOnMainThread, "The following context switch is not expected to cause runtime overhead.");
88
await
_threadingContext
.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
241
var projectCodeModel = new ProjectCodeModel(
_threadingContext
, id, codeModelInstanceFactory, _visualStudioWorkspace, _serviceProvider, this);
280
_ =
_threadingContext
.RunWithShutdownBlockAsync(async cancellationToken =>
282
await
_threadingContext
.JoinableTaskFactory.StartOnIdle(