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
52 references to IAsyncToken
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
93var token = _asyncListener.BeginAsyncOperation(nameof(ExecuteCommand));
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
104var asyncToken = asyncListener.BeginAsyncOperation(GetType().Name + ".Start");
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.Features (17)
Diagnostics\Service\EngineV2\InProcOrRemoteHostAnalyzerRunner.cs (1)
95var asyncToken = _asyncOperationListener.BeginAsyncOperation(nameof(AnalyzeInProcAsync));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (5)
252var newAsyncToken = Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.Services); 308private readonly struct UnitTestingData(Project project, DocumentId documentId, Document? document, SyntaxPath? changedMember, IAsyncToken asyncToken) 315public readonly IAsyncToken AsyncToken = asyncToken; 439private readonly struct UnitTestingData(ProjectId projectId, bool needDependencyTracking, IAsyncToken asyncToken) 441public readonly IAsyncToken AsyncToken = asyncToken;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (9)
53public readonly IAsyncToken AsyncToken; 64IAsyncToken asyncToken) 82public UnitTestingWorkItem(DocumentId documentId, string language, UnitTestingInvocationReasons invocationReasons, bool isLowPriority, SyntaxPath? activeMember, IAsyncToken asyncToken) 87public UnitTestingWorkItem(DocumentId documentId, string language, UnitTestingInvocationReasons invocationReasons, bool isLowPriority, IUnitTestingIncrementalAnalyzer? analyzer, IAsyncToken asyncToken) 111public UnitTestingWorkItem Retry(IAsyncToken asyncToken) 120ImmutableHashSet<IUnitTestingIncrementalAnalyzer> analyzers, bool retry, IAsyncToken asyncToken) 135public UnitTestingWorkItem WithAsyncToken(IAsyncToken asyncToken) 142public UnitTestingWorkItem ToProjectWorkItem(IAsyncToken asyncToken) 159public UnitTestingWorkItem With(ImmutableHashSet<IUnitTestingIncrementalAnalyzer> specificAnalyzers, IAsyncToken asyncToken)
NavigateTo\INavigateToSearcherHost.cs (1)
103var asyncToken = _asyncListener.BeginAsyncOperation(nameof(GetRemoteHostHydrateTask));
Shared\TestHooks\Legacy\ListenerForwarders.cs (1)
13[assembly: TypeForwardedTo(typeof(Microsoft.CodeAnalysis.Shared.TestHooks.IAsyncToken))]
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
231var asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration)); 242var asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration) + "." + nameof(Dispose));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
68var asyncToken = _asyncListener.BeginAsyncOperation($"{nameof(SourceGeneratorRefreshQueue)}.{nameof(OnLspSolutionChanged)}");
Microsoft.CodeAnalysis.Workspaces (15)
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsyncToken.cs (2)
10internal sealed class VSTypeScriptAsyncToken(IAsyncToken underlyingObject) : IDisposable 12internal IAsyncToken UnderlyingObject
Remote\IRemoteKeepAliveService.cs (1)
46var token = listener.BeginAsyncOperation(nameof(RemoteKeepAliveSession));
Shared\TestHooks\AsynchronousOperationListener.cs (2)
91public IAsyncToken BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0) 95IAsyncToken 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\TaskExtensions.cs (2)
16public static Task CompletesAsyncOperation(this Task task, IAsyncToken asyncToken) 32if (token is IAsyncToken { IsNull: true })
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
199using var _ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
src\Dependencies\Threading\TestHooks\IAsynchronousOperationListener.cs (1)
13IAsyncToken BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
Workspace\Workspace_Editor.cs (2)
459var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened)); 479var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));
Microsoft.VisualStudio.IntegrationTest.Setup (1)
AsyncCompletionTracker.cs (1)
49var token = listener.BeginAsyncOperation(nameof(IAsyncCompletionBroker.CompletionTriggered));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
423var completionToken = _asyncListener.BeginAsyncOperation(nameof(SemanticSearchToolWindow) + ".Execute");