3 implementations of IAppHostBackchannel
aspire (1)
Backchannel\AppHostBackchannel.cs (1)
30internal sealed class AppHostBackchannel(ILogger<AppHostBackchannel> logger, AspireCliTelemetry telemetry) : IAppHostBackchannel
Aspire.Cli.Tests (2)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
768internal sealed class TestPromptBackchannel : IAppHostBackchannel
TestServices\TestAppHostBackchannel.cs (1)
10internal sealed class TestAppHostBackchannel : IAppHostBackchannel
45 references to IAppHostBackchannel
aspire (18)
Commands\ExecCommand.cs (3)
129IAppHostBackchannel? backchannel = null; 185var backchannelCompletionSource = new TaskCompletionSource<IAppHostBackchannel>(); 212var backchannel = await backchannelCompletionSource.Task.WaitAsync(cancellationToken);
Commands\PipelineCommandBase.cs (5)
194var backchannelCompletionSource = new TaskCompletionSource<IAppHostBackchannel>(); 223var backchannel = await InteractionService.ShowStatusAsync($":hammer_and_wrench: {GetProgressMessage(parseResult)}", async () => 330public async Task<bool> ProcessPublishingActivitiesDebugAsync(IAsyncEnumerable<PublishingActivity> publishingActivities, IAppHostBackchannel backchannel, CancellationToken cancellationToken) 437public async Task<bool> ProcessAndDisplayPublishingActivitiesAsync(IAsyncEnumerable<PublishingActivity> publishingActivities, IAppHostBackchannel backchannel, bool isDebugOrTraceLoggingEnabled, CancellationToken cancellationToken) 694private async Task HandlePromptActivityAsync(PublishingActivity activity, IAppHostBackchannel backchannel, CancellationToken cancellationToken)
Commands\RunCommand.cs (3)
187var backchannelCompletitionSource = new TaskCompletionSource<IAppHostBackchannel>(); 221var backchannel = await InteractionService.ShowStatusAsync(isExtensionHost ? InteractionServiceStrings.BuildingAppHost : RunCommandStrings.ConnectingToAppHost, async () => { return await backchannelCompletitionSource.Task.WaitAsync(cancellationToken); }); 415private static async Task CaptureAppHostLogsAsync(FileInfo logFile, IAppHostBackchannel backchannel, IInteractionService interactionService, CancellationToken cancellationToken)
DotNet\DotNetCliRunner.cs (6)
32Task<int> RunAsync(FileInfo projectFile, bool watch, bool noBuild, string[] args, IDictionary<string, string>? env, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken); 232public async Task<int> RunAsync(FileInfo projectFile, bool watch, bool noBuild, string[] args, IDictionary<string, string>? env, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken) 513public virtual async Task<int> ExecuteAsync(string[] args, IDictionary<string, string>? env, FileInfo? projectFile, DirectoryInfo workingDirectory, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken) 673private async Task StartBackchannelAsync(Process? process, string socketPath, TaskCompletionSource<IAppHostBackchannel> backchannelCompletionSource, CancellationToken cancellationToken) 679var backchannel = serviceProvider.GetRequiredService<IAppHostBackchannel>();
Program.cs (1)
135builder.Services.AddTransient<IAppHostBackchannel, AppHostBackchannel>();
Aspire.Cli.Tests (27)
Commands\RunCommandTests.cs (20)
236var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 295var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 366var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 461var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 524var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 579var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 640var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 703var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 766var backchannel = sp.GetRequiredService<IAppHostBackchannel>(); 1198Action<string[], IDictionary<string, string>?, DirectoryInfo, FileInfo?, TaskCompletionSource<IAppHostBackchannel>?, DotNetCliRunnerInvocationOptions> assertionCallback, 1202public override Task<int> ExecuteAsync(string[] args, IDictionary<string, string>? env, FileInfo? projectFile, DirectoryInfo workingDirectory, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
DotNet\DotNetCliRunnerTests.cs (3)
557backchannelCompletionSource: new TaskCompletionSource<IAppHostBackchannel>(), 1305Action<string[], IDictionary<string, string>?, DirectoryInfo, FileInfo?, TaskCompletionSource<IAppHostBackchannel>?, DotNetCliRunnerInvocationOptions> assertionCallback, 1309public override Task<int> ExecuteAsync(string[] args, IDictionary<string, string>? env, FileInfo? projectFile, DirectoryInfo workingDirectory, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
Templating\DotNetTemplateFactoryTests.cs (1)
435public Task<int> RunAsync(FileInfo projectFile, bool watch, bool noBuild, string[] args, IDictionary<string, string>? env, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
TestServices\TestDotNetCliRunner.cs (2)
23public Func<FileInfo, bool, bool, string[], IDictionary<string, string>?, TaskCompletionSource<IAppHostBackchannel>?, DotNetCliRunnerInvocationOptions, CancellationToken, Task<int>>? RunAsyncCallback { get; set; } 103public Task<int> RunAsync(FileInfo projectFile, bool watch, bool noBuild, string[] args, IDictionary<string, string>? env, TaskCompletionSource<IAppHostBackchannel>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
Utils\CliTestHelper.cs (1)
290public Func<IServiceProvider, IAppHostBackchannel> AppHostBackchannelFactory { get; set; } = (IServiceProvider serviceProvider) =>