1 instantiation of RemoteServiceCallbackId
Microsoft.CodeAnalysis.Workspaces (1)
Remote\RemoteServiceCallbackDispatcher.cs (1)
39var callbackId = new RemoteServiceCallbackId(Interlocked.Increment(ref _callbackId));
47 references to RemoteServiceCallbackId
Microsoft.CodeAnalysis.Workspaces (47)
FindSymbols\IRemoteSymbolFinderService.cs (11)
18ValueTask AddReferenceItemsAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken); 19ValueTask ReferenceItemsCompletedAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken); 20ValueTask OnStartedAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 21ValueTask OnCompletedAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken); 22ValueTask OnDefinitionFoundAsync(RemoteServiceCallbackId callbackId, SerializableSymbolGroup group, CancellationToken cancellationToken); 23ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group, SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken); 25ValueTask AddLiteralItemsAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken); 26ValueTask LiteralItemsCompletedAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken); 27ValueTask OnLiteralReferenceFoundAsync(RemoteServiceCallbackId callbackId, DocumentId documentId, TextSpan span, CancellationToken cancellationToken); 30ValueTask FindReferencesAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, SerializableSymbolAndProjectId symbolAndProjectIdArg, ImmutableArray<DocumentId> documentArgs, 33ValueTask FindLiteralReferencesAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId, object value, TypeCode typeCode, CancellationToken cancellationToken);
FindSymbols\SymbolFinder.CallbackDispatcher.cs (11)
27private FindLiteralsServerCallback GetFindLiteralsCallback(RemoteServiceCallbackId callbackId) 30private FindReferencesServerCallback GetFindReferencesCallback(RemoteServiceCallbackId callbackId) 35public ValueTask AddReferenceItemsAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken) 38public ValueTask ReferenceItemsCompletedAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken) 41public ValueTask OnCompletedAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken) 44public ValueTask OnDefinitionFoundAsync(RemoteServiceCallbackId callbackId, SerializableSymbolGroup symbolGroup, CancellationToken cancellationToken) 47public ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group, SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken) 50public ValueTask OnStartedAsync(RemoteServiceCallbackId callbackId, CancellationToken cancellationToken) 55public ValueTask AddLiteralItemsAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken) 58public ValueTask LiteralItemsCompletedAsync(RemoteServiceCallbackId callbackId, int count, CancellationToken cancellationToken) 61public ValueTask OnLiteralReferenceFoundAsync(RemoteServiceCallbackId callbackId, DocumentId documentId, TextSpan span, CancellationToken cancellationToken)
Remote\IRemoteOptionsCallback.cs (1)
12ValueTask<TOptions> GetOptionsAsync(RemoteServiceCallbackId callbackId, string language, CancellationToken cancellationToken);
Remote\RemoteHostClient.cs (8)
81Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 91Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 180Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 191Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 203/// Equivalent to <see cref="TryInvokeAsync{TService}(Solution, Func{TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask}, object, CancellationToken)"/> 210Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 220/// Equivalent to <see cref="TryInvokeAsync{TService}(Solution, Func{TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask}, object, CancellationToken)"/> 227Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation,
Remote\RemoteServiceCallbackDispatcher.cs (6)
19internal readonly struct Handle(ConcurrentDictionary<RemoteServiceCallbackId, object> callbackInstances, RemoteServiceCallbackId callbackId) : IDisposable 21public readonly RemoteServiceCallbackId Id = callbackId; 30private readonly ConcurrentDictionary<RemoteServiceCallbackId, object> _callbackInstances = new(concurrencyLevel: 2, capacity: 10); 39var callbackId = new RemoteServiceCallbackId(Interlocked.Increment(ref _callbackId)); 45public object GetCallback(RemoteServiceCallbackId callbackId)
Remote\RemoteServiceConnection.cs (10)
33Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 37Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 94Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 99Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 104Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 110Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 119Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 125Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 130Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 136Func<TService, Checksum, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation,