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