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
31 references to IAsyncToken
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.LanguageServer (2)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
230
var
asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration));
241
var
asyncToken = _changeWatcher._asynchronousOperationListener.BeginAsyncOperation(nameof(LspFileWatchRegistration) + "." + nameof(Dispose));
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\InProcOrRemoteHostAnalyzerRunner.cs (1)
95
var
asyncToken = _asyncOperationListener.BeginAsyncOperation(nameof(AnalyzeInProcAsync));
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
67
var
asyncToken = _asyncListener.BeginAsyncOperation($"{nameof(SourceGeneratorRefreshQueue)}.{nameof(OnLspSolutionChanged)}");
Microsoft.CodeAnalysis.Workspaces (14)
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsyncToken.cs (2)
10
internal sealed class VSTypeScriptAsyncToken(
IAsyncToken
underlyingObject) : IDisposable
12
internal
IAsyncToken
UnderlyingObject
Remote\IRemoteKeepAliveService.cs (1)
46
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\TaskExtensions.cs (1)
16
public static Task CompletesAsyncOperation(this Task task,
IAsyncToken
asyncToken)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
201
using
var
_ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
src\Dependencies\Threading\TestHooks\IAsynchronousOperationListener.cs (1)
11
IAsyncToken
BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
Workspace\Workspace_Editor.cs (2)
458
var
token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened));
478
var
token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));