2 implementations of IAsyncToken
Microsoft.CodeAnalysis.Workspaces (2)
Shared\TestHooks\AsynchronousOperationListener+AsyncToken.cs (1)
12internal class AsyncToken : IAsyncToken
Shared\TestHooks\EmptyAsyncToken.cs (1)
7internal sealed class EmptyAsyncToken : IAsyncToken
68 references to IAsyncToken
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
107var asyncToken = asyncListener.BeginAsyncOperation(GetType().Name + ".Start");
Microsoft.CodeAnalysis.EditorFeatures (6)
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (1)
35var token = _listener.BeginAsyncOperation(nameof(QueueUpdate));
ExtractMethod\ExtractMethodCommandHandler.cs (1)
120using var asyncToken = _asyncListener.BeginAsyncOperation(nameof(ExecuteCommand));
FindReferences\FindReferencesCommandHandler.cs (1)
123using var token = _asyncListener.BeginAsyncOperation(nameof(StreamingFindReferencesAsync));
IntelliSense\NavigationActionFactory.cs (1)
56using var token = asyncListener.BeginAsyncOperation(nameof(NavigateToTargetAsync));
NavigateTo\NavigateToHelpers.cs (1)
23var token = asyncListener.BeginAsyncOperation(nameof(NavigateTo));
NavigationBar\NavigationBarController.cs (1)
268var token = _asyncListener.BeginAsyncOperation(nameof(OnItemSelected));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
AbstractCommandHandlerTestState.cs (1)
228/// Used in synchronous methods to ensure all outstanding <see cref="IAsyncToken"/> work has been
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (13)
Utilities\AsynchronousOperationListenerTests.cs (13)
85var asyncToken = listener.BeginAsyncOperation("Test"); 107var asyncToken1 = listener.BeginAsyncOperation("Test"); 113var asyncToken2 = listener.BeginAsyncOperation("Test"); 140var asyncToken1 = listener.BeginAsyncOperation("Test"); 145var asyncToken2 = listener.BeginAsyncOperation("Test"); 173var asyncToken1 = listener.BeginAsyncOperation("Test"); 208var asyncToken1 = listener.BeginAsyncOperation("Test"); 214var asyncToken2 = listener.BeginAsyncOperation("Test"); 218var asyncToken3 = listener.BeginAsyncOperation("Test"); 252var asyncToken1 = listener.BeginAsyncOperation("Test"); 268var asyncToken2 = listener.BeginAsyncOperation("Test"); 298var asyncToken1 = listener.BeginAsyncOperation("Test"); 308var asyncToken2 = listener.BeginAsyncOperation("Test");
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
86var token = _listener.BeginAsyncOperation(nameof(DismissToolTipsAsync));
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (2)
191var listenerToken = _asyncListener.BeginAsyncOperation(nameof(_smartRenameSession.GetSuggestionsAsync)); 264var listenerToken = _asyncListener.BeginAsyncOperation(nameof(SessionPropertyChanged));
NavigableSymbols\NavigableSymbolService.NavigableSymbol.cs (1)
50var token = _service._listener.BeginAsyncOperation(nameof(NavigateAsync));
NavigateTo\NavigateToItemProvider.cs (1)
122var asyncToken = _asyncListener.BeginAsyncOperation(nameof(StartSearch));
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
128var token = _asyncListener.BeginAsyncOperation(nameof(SetResultTextAsync));
Suggestions\SuggestedActions\SuggestedAction.cs (1)
121using var token = SourceProvider.OperationListener.BeginAsyncOperation($"{nameof(SuggestedAction)}.{nameof(Invoke)}");
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
230var asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration)); 241var asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration) + "." + nameof(Dispose));
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (1)
131var asyncToken = _asyncOperationListener.BeginAsyncOperation(nameof(AnalyzeInProcAsync));
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
67var asyncToken = _asyncListener.BeginAsyncOperation($"{nameof(SourceGeneratorRefreshQueue)}.{nameof(OnLspSolutionChanged)}");
Microsoft.CodeAnalysis.Workspaces (12)
Remote\IRemoteKeepAliveService.cs (1)
47var token = listener.BeginAsyncOperation(nameof(RemoteKeepAliveSession));
Shared\TestHooks\AsynchronousOperationListener.cs (2)
92public IAsyncToken BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0) 96IAsyncToken asyncToken;
Shared\TestHooks\AsynchronousOperationListener+DiagnosticAsyncToken.cs (1)
13/// Stores the source information for an <see cref="IAsyncToken"/> value. Helpful when
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
112/// loop, dig into the waiters and see all of the active <see cref="IAsyncToken"/> values
Shared\TestHooks\AsynchronousOperationListenerProvider+NullOperationListener.cs (1)
17public IAsyncToken BeginAsyncOperation(
Shared\TestHooks\EmptyAsyncToken.cs (1)
9public static IAsyncToken Instance { get; } = new EmptyAsyncToken();
Shared\TestHooks\IAsynchronousOperationListener.cs (1)
11IAsyncToken BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
Shared\TestHooks\TaskExtensions.cs (1)
16public static Task CompletesAsyncOperation(this Task task, IAsyncToken asyncToken)
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
195using var _ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
Workspace\Workspace_Editor.cs (2)
458var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened)); 478var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));
Microsoft.VisualStudio.IntegrationTest.Setup (1)
AsyncCompletionTracker.cs (1)
49var token = listener.BeginAsyncOperation(nameof(IAsyncCompletionBroker.CompletionTriggered));
Microsoft.VisualStudio.LanguageServices (23)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
63var token = _listener.BeginAsyncOperation(nameof(ExecuteCommand));
CallHierarchy\CallHierarchyDetail.cs (1)
60var token = _provider.AsyncListener.BeginAsyncOperation(nameof(NavigateTo));
CallHierarchy\CallHierarchyItem.cs (1)
134var token = _provider.AsyncListener.BeginAsyncOperation(nameof(NavigateTo));
CallHierarchy\Finders\AbstractCallFinder.cs (1)
58var asyncToken = _asyncListener.BeginAsyncOperation(this.GetType().Name + ".Search");
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
48var token = _listener.BeginAsyncOperation(nameof(InitializeWorkspaceAsync));
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
329using var asyncToken = _listener.BeginAsyncOperation($"{nameof(VisualStudioDiagnosticAnalyzerService)}_{nameof(RunAnalyzers)}");
ErrorReporting\VisualStudioErrorReportingService.cs (1)
85using var _ = _listener.BeginAsyncOperation(nameof(LogGlobalErrorToActivityLog));
FindReferences\FindReferencesTableControlEventProcessorProvider.cs (1)
78using var token = listener.BeginAsyncOperation(nameof(ProcessNavigateAsync));
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (1)
54var token = _listener.BeginAsyncOperation(nameof(TargetMenuItem_OnClick));
Interop\CleanableWeakComHandleTable.cs (1)
63using var _ = listener.BeginAsyncOperation(nameof(CleanUpDeadObjectsAsync));
Library\AbstractObjectList.cs (1)
329var asyncToken = asynchronousOperationListener.BeginAsyncOperation(nameof(IVsSimpleObjectList2) + "." + nameof(IVsSimpleObjectList2.GoToSource));
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
493var asyncToken = asynchronousOperationListener.BeginAsyncOperation(nameof(AbstractObjectBrowserLibraryManager) + "." + nameof(TryExec));
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (1)
98var token = this.packageInstallerService._listener.BeginAsyncOperation($"{GetType().Name}.{nameof(Do)}");
Progression\GraphProvider.cs (1)
170var asyncToken = _asyncListener.BeginAsyncOperation(nameof(BeginGetGraphData));
ProjectSystem\OpenTextBufferProvider.cs (1)
72var asyncToken = listener.BeginAsyncOperation(nameof(CheckForExistingOpenDocumentsAsync));
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
184using var _ = _ruleSetManager._listener.BeginAsyncOperation("IncludeUpdated");
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1567using var asyncToken = _workspaceListener.BeginAsyncOperation(nameof(RefreshProjectExistsUIContextForLanguageAsync));
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
373var token = _asynchronousOperationListener.BeginAsyncOperation(nameof(CheckForAddedFileBeingOpenMaybeAsync));
RoslynPackage.cs (1)
191using var token = listenerProvider.GetListener(FeatureAttribute.Workspace).BeginAsyncOperation(nameof(LoadOptionPersistersAsync));
Snippets\AbstractSnippetInfoService.cs (1)
117using var token = _waiter.BeginAsyncOperation(GetType().Name + ".Start");
ValueTracking\ValueTrackedTreeItemViewModel.cs (1)
171var token = _listener.BeginAsyncOperation(nameof(NavigateTo));
Workspace\SourceGeneratedFileManager.cs (1)
444var asyncToken = _fileManager._listener.BeginAsyncOperation($"{nameof(OpenSourceGeneratedFile)}.{nameof(OnWorkspaceChanged)}");
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
90using var asyncToken = listener.BeginAsyncOperation("StatusChanged_EventSubscription");