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
33 references to IAsyncToken
Microsoft.CodeAnalysis.Features (17)
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
47
var
asyncToken = _listener.BeginAsyncOperation(nameof(AnalyzeInProcessAsync));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (5)
252
var
newAsyncToken = Listener.BeginAsyncOperation(nameof(Enqueue), tag: _registration.Services);
308
private readonly struct UnitTestingData(Project project, DocumentId documentId, Document? document, SyntaxPath? changedMember,
IAsyncToken
asyncToken)
315
public readonly
IAsyncToken
AsyncToken = asyncToken;
439
private readonly struct UnitTestingData(ProjectId projectId, bool needDependencyTracking,
IAsyncToken
asyncToken)
441
public readonly
IAsyncToken
AsyncToken = asyncToken;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (9)
53
public readonly
IAsyncToken
AsyncToken;
64
IAsyncToken
asyncToken)
82
public UnitTestingWorkItem(DocumentId documentId, string language, UnitTestingInvocationReasons invocationReasons, bool isLowPriority, SyntaxPath? activeMember,
IAsyncToken
asyncToken)
87
public UnitTestingWorkItem(DocumentId documentId, string language, UnitTestingInvocationReasons invocationReasons, bool isLowPriority, IUnitTestingIncrementalAnalyzer? analyzer,
IAsyncToken
asyncToken)
111
public UnitTestingWorkItem Retry(
IAsyncToken
asyncToken)
120
ImmutableHashSet<IUnitTestingIncrementalAnalyzer> analyzers, bool retry,
IAsyncToken
asyncToken)
135
public UnitTestingWorkItem WithAsyncToken(
IAsyncToken
asyncToken)
142
public UnitTestingWorkItem ToProjectWorkItem(
IAsyncToken
asyncToken)
159
public UnitTestingWorkItem With(ImmutableHashSet<IUnitTestingIncrementalAnalyzer> specificAnalyzers,
IAsyncToken
asyncToken)
NavigateTo\INavigateToSearcherHost.cs (1)
103
var
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)
10
internal sealed class VSTypeScriptAsyncToken(
IAsyncToken
underlyingObject) : IDisposable
12
internal
IAsyncToken
UnderlyingObject
Remote\IRemoteKeepAliveService.cs (1)
188
var
token = listener.BeginAsyncOperation(nameof(RemoteKeepAliveSession));
Shared\TestHooks\AsynchronousOperationListener.cs (2)
91
public
IAsyncToken
BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0)
95
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 (2)
16
public static Task CompletesAsyncOperation(this Task task,
IAsyncToken
asyncToken)
32
if (token is
IAsyncToken
{ IsNull: true })
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
230
using
var
_ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
src\roslyn\src\Dependencies\Threading\TestHooks\IAsynchronousOperationListener.cs (1)
13
IAsyncToken
BeginAsyncOperation(string name, object? tag = null, [CallerFilePath] string filePath = "", [CallerLineNumber] int lineNumber = 0);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
193
using
var
_ = _asyncListener.BeginAsyncOperation(nameof(AddWork));
Workspace\Workspace_Editor.cs (2)
459
var
token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentOpened));
479
var
token = _asyncOperationListener.BeginAsyncOperation(nameof(OnSourceGeneratedDocumentClosed));