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
31 references to IAsyncToken
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.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\InProcOrRemoteHostAnalyzerRunner.cs (1)
95var asyncToken = _asyncOperationListener.BeginAsyncOperation(nameof(AnalyzeInProcAsync));
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
67var asyncToken = _asyncListener.BeginAsyncOperation($"{nameof(SourceGeneratorRefreshQueue)}.{nameof(OnLspSolutionChanged)}");
Microsoft.CodeAnalysis.Workspaces (14)
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)
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\TaskExtensions.cs (1)
16public static Task CompletesAsyncOperation(this Task task, IAsyncToken asyncToken)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
201using var _ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
src\Dependencies\Threading\TestHooks\IAsynchronousOperationListener.cs (1)
11IAsyncToken BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
Workspace\Workspace_Editor.cs (2)
458var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened)); 478var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));