3 implementations of IAppHostBackchannel
aspire (1)
Backchannel\AppHostBackchannel.cs (1)
27
internal sealed class AppHostBackchannel(ILogger<AppHostBackchannel> logger, AspireCliTelemetry telemetry) :
IAppHostBackchannel
Aspire.Cli.Tests (2)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
551
internal sealed class TestPromptBackchannel :
IAppHostBackchannel
TestServices\TestAppHostBackchannel.cs (1)
9
internal sealed class TestAppHostBackchannel :
IAppHostBackchannel
23 references to IAppHostBackchannel
aspire (14)
Commands\PublishCommandBase.cs (4)
129
var backchannelCompletionSource = new TaskCompletionSource<
IAppHostBackchannel
>();
157
var
backchannel = await _interactionService.ShowStatusAsync($":hammer_and_wrench: {GetProgressMessage()}", async ()=>
245
public async Task<bool> ProcessAndDisplayPublishingActivitiesAsync(IAsyncEnumerable<PublishingActivity> publishingActivities,
IAppHostBackchannel
backchannel, CancellationToken cancellationToken)
410
private async Task HandlePromptActivityAsync(PublishingActivity activity,
IAppHostBackchannel
backchannel, CancellationToken cancellationToken)
Commands\RunCommand.cs (3)
135
var backchannelCompletitionSource = new TaskCompletionSource<
IAppHostBackchannel
>();
150
var
backchannel = await _interactionService.ShowStatusAsync("Connecting to app host...", async () =>
259
private static async Task CaptureAppHostLogsAsync(FileInfo logFile,
IAppHostBackchannel
backchannel, CancellationToken cancellationToken)
DotNetCliRunner.cs (6)
24
Task<int> RunAsync(FileInfo projectFile, bool watch, bool noBuild, string[] args, IDictionary<string, string>? env, TaskCompletionSource<
IAppHostBackchannel
>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken);
189
public async Task<int> RunAsync(FileInfo projectFile, bool watch, bool noBuild, string[] args, IDictionary<string, string>? env, TaskCompletionSource<
IAppHostBackchannel
>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
394
public virtual async Task<int> ExecuteAsync(string[] args, IDictionary<string, string>? env, DirectoryInfo workingDirectory, TaskCompletionSource<
IAppHostBackchannel
>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
513
private async Task StartBackchannelAsync(Process process, string socketPath, TaskCompletionSource<
IAppHostBackchannel
> backchannelCompletionSource, CancellationToken cancellationToken)
519
var
backchannel = serviceProvider.GetRequiredService<
IAppHostBackchannel
>();
Program.cs (1)
105
builder.Services.AddTransient<
IAppHostBackchannel
, AppHostBackchannel>();
Aspire.Cli.Tests (9)
Commands\RunCommandTests.cs (4)
197
var
backchannel = sp.GetRequiredService<
IAppHostBackchannel
>();
254
var
backchannel = sp.GetRequiredService<
IAppHostBackchannel
>();
DotNet\DotNetCliRunnerTests.cs (2)
273
Action<string[], IDictionary<string, string>?, DirectoryInfo, TaskCompletionSource<
IAppHostBackchannel
>?, DotNetCliRunnerInvocationOptions> assertionCallback,
277
public override Task<int> ExecuteAsync(string[] args, IDictionary<string, string>? env, DirectoryInfo workingDirectory, TaskCompletionSource<
IAppHostBackchannel
>? backchannelCompletionSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
TestServices\TestDotNetCliRunner.cs (2)
19
public Func<FileInfo, bool, bool, string[], IDictionary<string, string>?, TaskCompletionSource<
IAppHostBackchannel
>?, DotNetCliRunnerInvocationOptions, CancellationToken, Task<int>>? RunAsyncCallback { get; set; }
74
public 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)
215
public Func<IServiceProvider,
IAppHostBackchannel
> AppHostBackchannelFactory { get; set; } = (IServiceProvider serviceProvider) =>