9 instantiations of AuxiliaryBackchannelMonitor
Aspire.Cli.Tests (9)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (9)
27
using var monitor = new
AuxiliaryBackchannelMonitor
(
71
using var monitor = new
AuxiliaryBackchannelMonitor
(
274
using var monitor = new
AuxiliaryBackchannelMonitor
(
360
using var monitor = new
AuxiliaryBackchannelMonitor
(
396
using var monitor = new
AuxiliaryBackchannelMonitor
(
421
using var monitor = new
AuxiliaryBackchannelMonitor
(
468
using var monitor = new
AuxiliaryBackchannelMonitor
(
631
using var monitor = new
AuxiliaryBackchannelMonitor
(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
676
using var monitor = new
AuxiliaryBackchannelMonitor
(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
44 references to AuxiliaryBackchannelMonitor
aspire (5)
Backchannel\AppHostConnectionResolver.cs (1)
310
/// <see cref="
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory"/> without the
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
26
ILogger<
AuxiliaryBackchannelMonitor
> logger,
Program.cs (3)
543
builder.Services.AddSingleton<
AuxiliaryBackchannelMonitor
>();
544
builder.Services.AddSingleton<IAuxiliaryBackchannelMonitor>(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
545
builder.Services.AddHostedService(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
Aspire.Cli.Tests (39)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (33)
27
using
var
monitor = new AuxiliaryBackchannelMonitor(
28
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
71
using
var
monitor = new AuxiliaryBackchannelMonitor(
72
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
274
using
var
monitor = new AuxiliaryBackchannelMonitor(
275
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), time, profiling);
360
using
var
monitor = new AuxiliaryBackchannelMonitor(
361
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
396
using
var
monitor = new AuxiliaryBackchannelMonitor(
397
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
421
using
var
monitor = new AuxiliaryBackchannelMonitor(
422
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), time, profiling);
468
using
var
monitor = new AuxiliaryBackchannelMonitor(
469
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), time, profiling);
503
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaReal, symlinkDirectory));
507
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaSymlink, realDirectory.FullName));
524
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(outsideAppHost, workingDirectory));
535
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(null, Path.GetTempPath()));
536
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(string.Empty, Path.GetTempPath()));
553
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, primaryRoot));
554
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, primaryRoot));
555
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, worktreeRoot));
556
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, worktreeRoot));
578
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
600
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, worktreeRoot));
601
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
628
var logger = new CapturingLogger<
AuxiliaryBackchannelMonitor
>();
631
using
var
monitor = new AuxiliaryBackchannelMonitor(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
673
var logger = new CapturingLogger<
AuxiliaryBackchannelMonitor
>();
676
using
var
monitor = new AuxiliaryBackchannelMonitor(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
707
private static async Task WaitForConnectAttemptsAsync(CapturingLogger<
AuxiliaryBackchannelMonitor
> logger, string socketPath, int expectedAttempts)
724
private static int CountConnectAttempts(CapturingLogger<
AuxiliaryBackchannelMonitor
> logger, string socketPath)
726
entry.EventId ==
AuxiliaryBackchannelMonitor
.ConnectingToSocketEvent &&
Commands\StopCommandTests.cs (4)
502
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, workspace.WorkspaceRoot.FullName));
503
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, workspace.WorkspaceRoot.FullName));
509
isInScope:
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, workspace.WorkspaceRoot.FullName));
514
isInScope:
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, workspace.WorkspaceRoot.FullName));
TestServices\TestAuxiliaryBackchannelMonitor.cs (2)
78
var connection =
AuxiliaryBackchannelMonitor
.SelectConnection(Connections, ref selectedAppHostPath);
87
.Where(c =>
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))