1 instantiation of RazorRemoteHostClient
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Remote\RazorRemoteHostClient.cs (1)
32return new RazorRemoteHostClient((ServiceHubRemoteHostClient)client, serviceDescriptors, callbackDispatchers);
18 references to RazorRemoteHostClient
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Remote\RazorRemoteHostClient.cs (1)
26public static async Task<RazorRemoteHostClient?> TryGetClientAsync(HostWorkspaceServices services, RazorServiceDescriptorsWrapper serviceDescriptors, RazorRemoteServiceCallbackDispatcherRegistry callbackDispatchers, CancellationToken cancellationToken = default)
Microsoft.VisualStudio.LanguageServices.Razor (17)
Remote\RemoteServiceInvoker.cs (17)
48private readonly AsyncLazy<RazorRemoteHostClient> _lazyMessagePackClient = AsyncLazy.Create(GetMessagePackClientAsync, workspaceProvider); 49private readonly AsyncLazy<RazorRemoteHostClient> _lazyJsonClient = AsyncLazy.Create(GetJsonClientAsync, workspaceProvider); 78var client = await GetClientAsync<TService>(cancellationToken).ConfigureAwait(false); 100private Task<RazorRemoteHostClient> GetClientAsync<TService>(CancellationToken cancellationToken) 106private static async Task<RazorRemoteHostClient> GetMessagePackClientAsync(IWorkspaceProvider workspaceProvider, CancellationToken cancellationToken) 110var remoteClient = await RazorRemoteHostClient 119?? throw new InvalidOperationException($"Couldn't retrieve {nameof(RazorRemoteHostClient)} for MessagePack serialization."); 122private static async Task<RazorRemoteHostClient> GetJsonClientAsync(IWorkspaceProvider workspaceProvider, CancellationToken cancellationToken) 126var remoteClient = await RazorRemoteHostClient 135?? throw new InvalidOperationException($"Couldn't retrieve {nameof(RazorRemoteHostClient)} for JSON serialization."); 152var remoteClient = await _lazyJsonClient 176async Task InitializeOOPAsync(RazorRemoteHostClient remoteClient) 204Task InitializeLspAsync(RazorRemoteHostClient remoteClient) 238var remoteClient = await _lazyJsonClient.GetValueAsync(cancellationToken).ConfigureAwait(false); 242private Task UpdateClientSettingsAsync(RazorRemoteHostClient remoteClient, CancellationToken cancellationToken)