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
33 references to IAsyncToken
Microsoft.CodeAnalysis.Features (17)
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
47var asyncToken = _listener.BeginAsyncOperation(nameof(AnalyzeInProcessAsync));
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.Workspaces (16)
ExternalAccess\VSTypeScript\Api\VSTypeScriptAsyncToken.cs (2)
10internal sealed class VSTypeScriptAsyncToken(IAsyncToken underlyingObject) : IDisposable 12internal IAsyncToken UnderlyingObject
Remote\IRemoteKeepAliveService.cs (1)
188var 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\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
230using var _ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
src\roslyn\src\Dependencies\Threading\TestHooks\IAsynchronousOperationListener.cs (1)
13IAsyncToken BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
193using var _ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
Workspace\Workspace_Editor.cs (2)
459var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened)); 479var token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));