2 types derived from RemoteHostClient
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ServiceHubRemoteHostClient.cs (1)
19internal sealed partial class ServiceHubRemoteHostClient : RemoteHostClient
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\InProcRemostHostClient.cs (1)
21internal sealed partial class InProcRemoteHostClient : RemoteHostClient
182 references to RemoteHostClient
Microsoft.CodeAnalysis.EditorFeatures (9)
Remote\SolutionChecksumUpdater.cs (8)
145await RemoteHostClient.WaitForClientCreationAsync(_workspace, cancellationToken).ConfigureAwait(false); 147var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 166await RemoteHostClient.WaitForClientCreationAsync(_workspace, cancellationToken).ConfigureAwait(false); 168var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 209var client = await RemoteHostClient.TryGetClientAsync(_workspace, _shutdownToken).ConfigureAwait(false);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
96var client = await RemoteHostClient.TryGetClientAsync(workspace, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Remote\RazorRemoteHostClient.cs (2)
28var client = await RemoteHostClient.TryGetClientAsync(services.SolutionServices, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (87)
AddImport\AbstractAddImportFeatureService.cs (4)
69var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 542var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (4)
37var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 68var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
224var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Copilot\ICopilotChangeAnalysisService.cs (2)
62var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
387RemoteHostClient client,
Diagnostics\Service\EngineV2\InProcOrRemoteHostAnalyzerRunner.cs (5)
68var remoteHostClient = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 84RemoteHostClient? client, 126RemoteHostClient? client, 161RemoteHostClient client,
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
41var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (14)
25var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 40var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 63var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 87var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 102var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 116var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 138var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (6)
129var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 162var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 180var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false);
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
119var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Extensions\ExtensionMessageHandlerService_RemoteOrLocal.cs (2)
51var client = await RemoteHostClient.TryGetClientAsync(_solutionServices, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (4)
31var client = await RemoteHostClient.TryGetClientAsync(project.Solution.Services, cancellationToken).ConfigureAwait(false); 54var client = await RemoteHostClient.TryGetClientAsync(project.Solution.Services, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindImplementations.cs (2)
45var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
133var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (2)
42var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService.cs (2)
38var remoteClient = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (2)
82var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (2)
38var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (4)
36var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 164var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
NavigateTo\INavigateToSearcherHost.cs (2)
107var client = await RemoteHostClient.TryGetClientAsync(_solution.Services, _disposalToken).ConfigureAwait(false);
NavigationBar\AbstractNavigationBarItemService.cs (2)
23var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
RelatedDocuments\AbstractRelatedDocumentsService.cs (2)
43var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
SemanticSearch\IRemoteSemanticSearchService.cs (6)
166var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 181var client = await RemoteHostClient.TryGetClientAsync(services, cancellationToken).ConfigureAwait(false); 191var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
StackTraceExplorer\StackTraceExplorerService.cs (2)
50var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
SymbolSearch\Windows\SymbolSearchUpdateEngineFactory.cs (2)
27var client = await RemoteHostClient.TryGetClientAsync(workspace, cancellationToken).ConfigureAwait(false);
SymbolSearch\Windows\SymbolSearchUpdateEngineProxy.cs (1)
12internal sealed class SymbolSearchUpdateEngineProxy(RemoteHostClient client) : ISymbolSearchUpdateEngine
TaskList\AbstractTaskListService.cs (2)
31var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackingService.cs (4)
33var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 64var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (5)
ExternalAccess\Pythia\Api\PythiaRemoteHostClient.cs (2)
28var client = await RemoteHostClient.TryGetClientAsync(services.SolutionServices, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\Api\UnitTestingRemoteHostClient.cs (2)
28var client = await RemoteHostClient.TryGetClientAsync(services.SolutionServices, cancellationToken).ConfigureAwait(false);
ServiceHubRemoteHostClient.cs (1)
54public static async Task<RemoteHostClient> CreateAsync(
Microsoft.CodeAnalysis.Workspaces (45)
Classification\AbstractClassificationService.cs (3)
75var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 110RemoteHostClient client,
Diagnostics\Extensions.cs (2)
513var remoteHostClient = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (2)
37var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (8)
43var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 81var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 114var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 147var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (2)
28var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindLiteralReferences.cs (2)
24var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindReferences_Current.cs (2)
44var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Remote\IRemoteHostClientProvider.cs (3)
12/// Returns a <see cref="RemoteHostClient"/> that a user can use to communicate with a remote host (i.e. ServiceHub) 17/// Get <see cref="RemoteHostClient"/> to current RemoteHost 19Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken);
Remote\IRemoteKeepAliveService.cs (5)
30RemoteHostClient? client) 55var client = await RemoteHostClient.TryGetClientAsync(compilationState.Services, cancellationToken).ConfigureAwait(false); 115var client = await RemoteHostClient.TryGetClientAsync(compilationState.Services, cancellationToken).ConfigureAwait(false);
Remote\RemoteHostClient.cs (5)
31public static Task<RemoteHostClient?> TryGetClientAsync(Project project, CancellationToken cancellationToken) 35return SpecializedTasks.Null<RemoteHostClient>(); 41public static Task<RemoteHostClient?> TryGetClientAsync(Workspace workspace, CancellationToken cancellationToken) 44public static Task<RemoteHostClient?> TryGetClientAsync(SolutionServices services, CancellationToken cancellationToken) 49return SpecializedTasks.Null<RemoteHostClient>();
Rename\ConflictEngine\ConflictResolver.cs (2)
58var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Rename\LightweightRenameLocations.cs (2)
84var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Rename\Renamer.cs (2)
159var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
120RemoteHostClient? remoteHostClient = null;
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
86var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (2)
132var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
Remote\InProcRemostHostClient.cs (1)
27public static RemoteHostClient Create(SolutionServices services, RemoteServiceCallbackDispatcherRegistry callbackDispatchers, TraceListener? traceListener, RemoteHostTestData testData)
Remote\InProcRemoteHostClientProvider.cs (4)
65private readonly Lazy<RemoteHostClient> _lazyClient; 84_lazyClient = new Lazy<RemoteHostClient>( 112public Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken) 113=> Task.FromResult<RemoteHostClient?>(_lazyClient.Value);
Microsoft.VisualStudio.LanguageServices (23)
CodeLens\RemoteCodeLensReferencesService.cs (8)
52var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 98var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 123var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 285var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
DesignerAttribute\VisualStudioDesignerAttributeService.cs (2)
129var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false);
Remote\DefaultRemoteHostClientProvider.cs (2)
17public Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken) 18=> SpecializedTasks.Null<RemoteHostClient>();
Remote\VisualStudioRemoteHostClientProvider.cs (5)
97private readonly VSThreading.AsyncLazy<RemoteHostClient?> _lazyClient; 124_lazyClient = new VSThreading.AsyncLazy<RemoteHostClient?>(CreateHostClientAsync, _threadingContext.JoinableTaskFactory); 127private async Task<RemoteHostClient?> CreateHostClientAsync() 139var client = await ServiceHubRemoteHostClient.CreateAsync(Services, configuration, localSettingsDirectory, _listenerProvider, serviceBroker, _callbackDispatchers, _threadingContext.DisposalToken).ConfigureAwait(false); 156public Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken)
Remote\VisualStudioWorkspaceServiceHubConnector.cs (1)
30private Task<RemoteHostClient?>? _remoteClientInitializationTask;
Telemetry\VisualStudioWorkspaceTelemetryService.cs (3)
49await RemoteHostClient.WaitForClientCreationAsync(_workspace.Value, cancellationToken).ConfigureAwait(false); 51var client = await RemoteHostClient.TryGetClientAsync(_workspace.Value, cancellationToken).ConfigureAwait(false);
UnusedReferences\UnusedReferenceAnalysisService.cs (2)
29var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\PerformanceLoggersPage.cs (2)
67var client = threadingContext.JoinableTaskFactory.Run(() => RemoteHostClient.TryGetClientAsync(workspaceServices, CancellationToken.None));
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\RemoteHostClientServiceFactoryTests.cs (2)
43using var client = await service.TryGetRemoteHostClientAsync(CancellationToken.None); 76var client = await service.TryGetRemoteHostClientAsync(CancellationToken.None);
Services\ServiceHubServicesTests.cs (2)
1470RemoteHostClient client, 1742private static async Task UpdatePrimaryWorkspace(RemoteHostClient client, Solution solution)