2 types derived from RemoteHostClient
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ServiceHubRemoteHostClient.cs (1)
28internal sealed partial class ServiceHubRemoteHostClient : RemoteHostClient
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\InProcRemostHostClient.cs (1)
27internal sealed partial class InProcRemoteHostClient : RemoteHostClient
166 references to RemoteHostClient
Microsoft.CodeAnalysis.EditorFeatures (6)
Remote\SolutionChecksumUpdater.cs (4)
146var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 216var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (2)
68var client = await RemoteHostClient.TryGetClientAsync(workspace, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
Remote\RazorRemoteHostClient.cs (2)
28var client = await RemoteHostClient.TryGetClientAsync(services.SolutionServices, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (75)
AddImport\AbstractAddImportFeatureService.cs (4)
62var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 513var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (4)
29var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 62var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
215var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
41var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (18)
45var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 70var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 114var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 178var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 198var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 212var client = await RemoteHostClient.TryGetClientAsync(_workspace.Services.SolutionServices, cancellationToken).ConfigureAwait(false); 229var client = await RemoteHostClient.TryGetClientAsync(_workspace.Services.SolutionServices, cancellationToken).ConfigureAwait(false); 245var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false); 267var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (6)
147var client = await RemoteHostClient.TryGetClientAsync(Workspace, cancellationToken).ConfigureAwait(false); 180var client = await RemoteHostClient.TryGetClientAsync(Workspace, cancellationToken).ConfigureAwait(false); 247var client = await RemoteHostClient.TryGetClientAsync(Workspace, cancellationToken).ConfigureAwait(false);
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
113var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (4)
32var client = await RemoteHostClient.TryGetClientAsync(project.Solution.Services, cancellationToken).ConfigureAwait(false); 55var client = await RemoteHostClient.TryGetClientAsync(project.Solution.Services, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindImplementations.cs (2)
44var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
136var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (2)
43var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService.cs (2)
50var remoteClient = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (2)
70var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (2)
28var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (4)
32var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 68var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
NavigateTo\INavigateToSearcherHost.cs (2)
105var client = await RemoteHostClient.TryGetClientAsync(_solution.Services, _disposalToken).ConfigureAwait(false);
NavigationBar\AbstractNavigationBarItemService.cs (2)
23var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
Shared\Utilities\CompilationAvailableEventSource.cs (2)
77var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
StackTraceExplorer\StackTraceExplorerService.cs (2)
52var 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)
16public SymbolSearchUpdateEngineProxy(RemoteHostClient client)
TaskList\AbstractTaskListService.cs (2)
33var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackingService.cs (4)
34var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 65var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (5)
75var remoteHostClient = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 91RemoteHostClient? client, 127RemoteHostClient? client, 158RemoteHostClient client,
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)
63public static async Task<RemoteHostClient> CreateAsync(
Microsoft.CodeAnalysis.Workspaces (36)
Classification\AbstractClassificationService.cs (3)
67var client = await RemoteHostClient.TryGetClientAsync(document.Project, cancellationToken).ConfigureAwait(false); 115RemoteHostClient client,
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (2)
37var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (8)
45var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 83var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false); 116var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 149var client = await RemoteHostClient.TryGetClientAsync(project, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (2)
29var 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 (2)
41var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Remote\RemoteHostClient.cs (5)
36public static Task<RemoteHostClient?> TryGetClientAsync(Project project, CancellationToken cancellationToken) 40return SpecializedTasks.Null<RemoteHostClient>(); 46public static Task<RemoteHostClient?> TryGetClientAsync(Workspace workspace, CancellationToken cancellationToken) 49public static Task<RemoteHostClient?> TryGetClientAsync(SolutionServices services, CancellationToken cancellationToken) 54return SpecializedTasks.Null<RemoteHostClient>();
Rename\ConflictEngine\ConflictResolver.cs (2)
64var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Rename\LightweightRenameLocations.cs (2)
89var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Rename\Renamer.cs (2)
173var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
120RemoteHostClient? remoteHostClient = null;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
Remote\InProcRemostHostClient.cs (1)
33public static RemoteHostClient Create(SolutionServices services, RemoteServiceCallbackDispatcherRegistry callbackDispatchers, TraceListener? traceListener, RemoteHostTestData testData)
Remote\InProcRemoteHostClientProvider.cs (4)
56private readonly Lazy<RemoteHostClient> _lazyClient; 72_lazyClient = new Lazy<RemoteHostClient>( 90public Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken) 91=> Task.FromResult<RemoteHostClient?>(_lazyClient.Value);
Microsoft.VisualStudio.LanguageServices (26)
CodeLens\RemoteCodeLensReferencesService.cs (8)
53var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 99var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 124var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false); 262var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
DesignerAttribute\VisualStudioDesignerAttributeService.cs (2)
121var client = await RemoteHostClient.TryGetClientAsync(_workspace, cancellationToken).ConfigureAwait(false);
Remote\DefaultRemoteHostClientProvider.cs (2)
21public Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken) 22=> SpecializedTasks.Null<RemoteHostClient>();
Remote\GlobalNotificationRemoteDeliveryService.cs (4)
90var client = await RemoteHostClient.TryGetClientAsync(_services, _cancellationToken).ConfigureAwait(false); 125var client = await RemoteHostClient.TryGetClientAsync(_services, _cancellationToken).ConfigureAwait(false);
Remote\VisualStudioRemoteHostClientProvider.cs (5)
72private readonly VSThreading.AsyncLazy<RemoteHostClient?> _lazyClient; 95_lazyClient = new VSThreading.AsyncLazy<RemoteHostClient?>(CreateHostClientAsync, threadingContext.JoinableTaskFactory); 98private async Task<RemoteHostClient?> CreateHostClientAsync() 111var client = await ServiceHubRemoteHostClient.CreateAsync(_services, configuration, _listenerProvider, serviceBroker, _callbackDispatchers, CancellationToken.None).ConfigureAwait(false); 124public Task<RemoteHostClient?> TryGetRemoteHostClientAsync(CancellationToken cancellationToken)
Remote\VisualStudioWorkspaceServiceHubConnector.cs (1)
31private Task<RemoteHostClient?>? _remoteClientInitializationTask;
Telemetry\VisualStudioWorkspaceTelemetryService.cs (2)
50var client = await RemoteHostClient.TryGetClientAsync(_workspace, CancellationToken.None).ConfigureAwait(false);
UnusedReferences\UnusedReferenceAnalysisService.cs (2)
29var client = await RemoteHostClient.TryGetClientAsync(solution.Services, cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\PerformanceLoggersPage.cs (2)
68var client = threadingContext.JoinableTaskFactory.Run(() => RemoteHostClient.TryGetClientAsync(workspaceServices, CancellationToken.None));
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\RemoteHostClientServiceFactoryTests.cs (2)
48using var client = await service.TryGetRemoteHostClientAsync(CancellationToken.None); 81var client = await service.TryGetRemoteHostClientAsync(CancellationToken.None);
Services\ServiceHubServicesTests.cs (2)
327RemoteHostClient client, 465private static async Task UpdatePrimaryWorkspace(RemoteHostClient client, Solution solution)