2 instantiations of InitializedRemoteService
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (2)
87
return new
InitializedRemoteService
(remoteService, result);
122
return new
InitializedRemoteService
(remoteService, result);
10 references to InitializedRemoteService
Microsoft.CodeAnalysis.InteractiveHost (10)
Interactive\Core\InteractiveHost.cs (4)
217
private async Task<
InitializedRemoteService
> TryGetOrCreateRemoteServiceAsync()
231
var
initializedService = await currentRemoteService.GetInitializedServiceAsync().ConfigureAwait(false);
275
var
initializedRemoteService = await TryGetOrCreateRemoteServiceAsync().ConfigureAwait(false);
341
var
initializedService = await TryGetOrCreateRemoteServiceAsync().ConfigureAwait(false);
Interactive\Core\InteractiveHost.LazyRemoteService.cs (6)
25
private readonly AsyncLazy<
InitializedRemoteService
> _lazyInitializedService;
50
if (_lazyInitializedService.TryGetValue(out
var
initializedService))
56
internal Task<
InitializedRemoteService
> GetInitializedServiceAsync()
59
internal
InitializedRemoteService
? TryGetInitializedService()
60
=> _lazyInitializedService.TryGetValue(out
var
service) ? service : default;
62
private async Task<
InitializedRemoteService
> TryStartAndInitializeProcessAsync(CancellationToken cancellationToken)