2 implementations of IAsyncToken
Microsoft.CodeAnalysis.Workspaces (2)
Shared\TestHooks\AsynchronousOperationListener+AsyncToken.cs (1)
12
internal class AsyncToken :
IAsyncToken
Shared\TestHooks\EmptyAsyncToken.cs (1)
7
internal sealed class EmptyAsyncToken :
IAsyncToken
72 references to IAsyncToken
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
107
var
asyncToken = asyncListener.BeginAsyncOperation(GetType().Name + ".Start");
Microsoft.CodeAnalysis.EditorFeatures (8)
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (1)
35
var
token = _listener.BeginAsyncOperation(nameof(QueueUpdate));
ExtractMethod\ExtractMethodCommandHandler.cs (1)
124
using
var
asyncToken = _asyncListener.BeginAsyncOperation(nameof(ExecuteCommand));
FindReferences\FindReferencesCommandHandler.cs (1)
123
using
var
token = _asyncListener.BeginAsyncOperation(nameof(StreamingFindReferencesAsync));
IntelliSense\NavigationActionFactory.cs (1)
56
using
var
token = asyncListener.BeginAsyncOperation(nameof(NavigateToTargetAsync));
NavigateTo\NavigateToHelpers.cs (1)
23
var
token = asyncListener.BeginAsyncOperation(nameof(NavigateTo));
NavigationBar\NavigationBarController.cs (1)
268
var
token = _asyncListener.BeginAsyncOperation(nameof(OnItemSelected));
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
77
var
asyncToken = _asyncListener.BeginAsyncOperation(GetType().Name + ".UpdateTrackingSessionAfterIsRenamableIdentifierTask");
109
var
asyncToken = _asyncListener.BeginAsyncOperation($"{GetType().Name}.{nameof(QueueUpdateToStateMachine)}");
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)
85
var
asyncToken = listener.BeginAsyncOperation("Test");
107
var
asyncToken1 = listener.BeginAsyncOperation("Test");
113
var
asyncToken2 = listener.BeginAsyncOperation("Test");
140
var
asyncToken1 = listener.BeginAsyncOperation("Test");
145
var
asyncToken2 = listener.BeginAsyncOperation("Test");
173
var
asyncToken1 = listener.BeginAsyncOperation("Test");
208
var
asyncToken1 = listener.BeginAsyncOperation("Test");
214
var
asyncToken2 = listener.BeginAsyncOperation("Test");
218
var
asyncToken3 = listener.BeginAsyncOperation("Test");
252
var
asyncToken1 = listener.BeginAsyncOperation("Test");
268
var
asyncToken2 = listener.BeginAsyncOperation("Test");
298
var
asyncToken1 = listener.BeginAsyncOperation("Test");
308
var
asyncToken2 = listener.BeginAsyncOperation("Test");
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
86
var
token = _listener.BeginAsyncOperation(nameof(DismissToolTipsAsync));
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (2)
157
var
listenerToken = _asyncListener.BeginAsyncOperation(nameof(_smartRenameSession.GetSuggestionsAsync));
208
var
listenerToken = _asyncListener.BeginAsyncOperation(nameof(SessionPropertyChanged));
NavigableSymbols\NavigableSymbolService.NavigableSymbol.cs (1)
50
var
token = _service._listener.BeginAsyncOperation(nameof(NavigateAsync));
NavigateTo\NavigateToItemProvider.cs (1)
122
var
asyncToken = _asyncListener.BeginAsyncOperation(nameof(StartSearch));
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
128
var
token = _asyncListener.BeginAsyncOperation(nameof(SetResultTextAsync));
Suggestions\SuggestedActions\SuggestedAction.cs (1)
121
using
var
token = SourceProvider.OperationListener.BeginAsyncOperation($"{nameof(SuggestedAction)}.{nameof(Invoke)}");
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
220
var
asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration));
231
var
asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration) + "." + nameof(Dispose));
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (1)
131
var
asyncToken = _asyncOperationListener.BeginAsyncOperation(nameof(AnalyzeInProcAsync));
RoslynRequestExecutionQueue.cs (1)
35
using
var
token = _listener.BeginAsyncOperation(nameof(WrapStartRequestTaskAsync));
Microsoft.CodeAnalysis.Workspaces (14)
Remote\IRemoteKeepAliveService.cs (1)
47
var
token = listener.BeginAsyncOperation(nameof(RemoteKeepAliveSession));
Shared\TestHooks\AsynchronousOperationListener.cs (2)
92
public
IAsyncToken
BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0)
96
IAsyncToken
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)
17
public
IAsyncToken
BeginAsyncOperation(
Shared\TestHooks\EmptyAsyncToken.cs (1)
9
public static
IAsyncToken
Instance { get; } = new EmptyAsyncToken();
Shared\TestHooks\IAsynchronousOperationListener.cs (1)
11
IAsyncToken
BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
Shared\TestHooks\TaskExtensions.cs (1)
16
public static Task CompletesAsyncOperation(this Task task,
IAsyncToken
asyncToken)
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
195
using
var
_ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
Utilities\TaskQueue.cs (2)
34
private
IAsyncToken
BeginOperation(string taskName)
37
private static TTask EndOperation<TTask>(
IAsyncToken
token, TTask task) where TTask : Task
Workspace\Workspace_Editor.cs (2)
458
var
token = _taskQueue.Listener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened));
478
var
token = _taskQueue.Listener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));
Microsoft.VisualStudio.IntegrationTest.Setup (1)
AsyncCompletionTracker.cs (1)
49
var
token = listener.BeginAsyncOperation(nameof(IAsyncCompletionBroker.CompletionTriggered));
Microsoft.VisualStudio.LanguageServices (23)
CallHierarchy\CallHierarchyCommandHandler.cs (1)
63
var
token = _listener.BeginAsyncOperation(nameof(ExecuteCommand));
CallHierarchy\CallHierarchyDetail.cs (1)
60
var
token = _provider.AsyncListener.BeginAsyncOperation(nameof(NavigateTo));
CallHierarchy\CallHierarchyItem.cs (1)
134
var
token = _provider.AsyncListener.BeginAsyncOperation(nameof(NavigateTo));
CallHierarchy\Finders\AbstractCallFinder.cs (1)
58
var
asyncToken = _asyncListener.BeginAsyncOperation(this.GetType().Name + ".Search");
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
48
var
token = _listener.BeginAsyncOperation(nameof(InitializeWorkspaceAsync));
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
329
using
var
asyncToken = _listener.BeginAsyncOperation($"{nameof(VisualStudioDiagnosticAnalyzerService)}_{nameof(RunAnalyzers)}");
ErrorReporting\VisualStudioErrorReportingService.cs (1)
85
using
var
_ = _listener.BeginAsyncOperation(nameof(LogGlobalErrorToActivityLog));
FindReferences\FindReferencesTableControlEventProcessorProvider.cs (1)
78
using
var
token = listener.BeginAsyncOperation(nameof(ProcessNavigateAsync));
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (1)
54
var
token = _listener.BeginAsyncOperation(nameof(TargetMenuItem_OnClick));
Interop\CleanableWeakComHandleTable.cs (1)
63
using
var
_ = listener.BeginAsyncOperation(nameof(CleanUpDeadObjectsAsync));
Library\AbstractObjectList.cs (1)
320
var
asyncToken = asynchronousOperationListener.BeginAsyncOperation(nameof(IVsSimpleObjectList2) + "." + nameof(IVsSimpleObjectList2.GoToSource));
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
492
var
asyncToken = asynchronousOperationListener.BeginAsyncOperation(nameof(AbstractObjectBrowserLibraryManager) + "." + nameof(TryExec));
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (1)
98
var
token = this.packageInstallerService._listener.BeginAsyncOperation($"{GetType().Name}.{nameof(Do)}");
Progression\GraphProvider.cs (1)
170
var
asyncToken = _asyncListener.BeginAsyncOperation(nameof(BeginGetGraphData));
ProjectSystem\OpenTextBufferProvider.cs (1)
72
var
asyncToken = listener.BeginAsyncOperation(nameof(CheckForExistingOpenDocumentsAsync));
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
184
using
var
_ = _ruleSetManager._listener.BeginAsyncOperation("IncludeUpdated");
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1567
using
var
asyncToken = _workspaceListener.BeginAsyncOperation(nameof(RefreshProjectExistsUIContextForLanguageAsync));
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
373
var
token = _asynchronousOperationListener.BeginAsyncOperation(nameof(CheckForAddedFileBeingOpenMaybeAsync));
RoslynPackage.cs (1)
191
using
var
token = listenerProvider.GetListener(FeatureAttribute.Workspace).BeginAsyncOperation(nameof(LoadOptionPersistersAsync));
Snippets\AbstractSnippetInfoService.cs (1)
117
using
var
token = _waiter.BeginAsyncOperation(GetType().Name + ".Start");
ValueTracking\ValueTrackedTreeItemViewModel.cs (1)
171
var
token = _listener.BeginAsyncOperation(nameof(NavigateTo));
Workspace\SourceGeneratedFileManager.cs (1)
444
var
asyncToken = _fileManager._listener.BeginAsyncOperation($"{nameof(OpenSourceGeneratedFile)}.{nameof(OnWorkspaceChanged)}");
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
90
using
var
asyncToken = listener.BeginAsyncOperation("StatusChanged_EventSubscription");