2 implementations of IAppHostRpcClient
aspire (1)
Projects\AppHostRpcClient.cs (1)
17internal sealed class AppHostRpcClient : IAppHostRpcClient
Aspire.Cli.Tests (1)
TestServices\FakeAppHostServerSession.cs (1)
130internal class FakeAppHostRpcClient : IAppHostRpcClient
32 references to IAppHostRpcClient
aspire (24)
Commands\Sdk\SdkDumpCommand.cs (3)
210var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken); 308var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken); 349IAppHostRpcClient rpcClient,
Commands\Sdk\SdkExportCommand.cs (1)
220var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken);
Commands\Sdk\SdkGenerateCommand.cs (1)
164var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken);
Projects\AppHostRpcClient.cs (3)
15/// Implementation of <see cref="IAppHostRpcClient"/> using JSON-RPC over sockets/pipes. 253/// Factory for creating <see cref="IAppHostRpcClient"/> instances. 258public async Task<IAppHostRpcClient> ConnectAsync(string socketPath, string authenticationToken, CancellationToken cancellationToken)
Projects\AppHostServerSession.cs (2)
59private IAppHostRpcClient? _rpcClient; 289public async Task<IAppHostRpcClient> GetRpcClientAsync(CancellationToken cancellationToken)
Projects\GuestAppHostProject.cs (9)
384var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken); 429var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken); 629IAppHostRpcClient rpcClient; 1417IAppHostRpcClient rpcClient; 1950IAppHostRpcClient rpcClient, 2357IAppHostRpcClient rpcClient, 2406IAppHostRpcClient rpcClient, 2472IAppHostRpcClient rpcClient, 2498IAppHostRpcClient rpcClient,
Projects\IAppHostRpcClient.cs (1)
113Task<IAppHostRpcClient> ConnectAsync(string socketPath, string authenticationToken, CancellationToken cancellationToken);
Projects\IAppHostServerSession.cs (1)
64Task<IAppHostRpcClient> GetRpcClientAsync(CancellationToken cancellationToken);
Scaffolding\ScaffoldingService.cs (3)
173var rpcClient = await serverSession.GetRpcClientAsync(cancellationToken); 435IAppHostRpcClient rpcClient, 497IAppHostRpcClient rpcClient,
Aspire.Cli.Tests (8)
Commands\Sdk\SdkExportCommandTests.cs (1)
371IAppHostRpcClient rpcClient,
Projects\GuestAppHostProjectTests.cs (3)
215GetRpcClientAsyncCallback = _ => Task.FromException<IAppHostRpcClient>( 1746GetRpcClientAsyncCallback = _ => Task.FromException<IAppHostRpcClient>( 1861GetRpcClientAsyncCallback = _ => Task.FromException<IAppHostRpcClient>(
TestServices\FakeAppHostServerSession.cs (4)
20private readonly IAppHostRpcClient _rpcClient; 23public FakeAppHostServerSession(IAppHostRpcClient? rpcClient = null) 30public Func<CancellationToken, Task<IAppHostRpcClient>>? GetRpcClientAsyncCallback { get; init; } 67public Task<IAppHostRpcClient> GetRpcClientAsync(CancellationToken cancellationToken)