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