9 instantiations of AuxiliaryBackchannelMonitor
Aspire.Cli.Tests (9)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (9)
27
using var monitor = new
AuxiliaryBackchannelMonitor
(
64
using var monitor = new
AuxiliaryBackchannelMonitor
(
267
using var monitor = new
AuxiliaryBackchannelMonitor
(
353
using var monitor = new
AuxiliaryBackchannelMonitor
(
389
using var monitor = new
AuxiliaryBackchannelMonitor
(
414
using var monitor = new
AuxiliaryBackchannelMonitor
(
461
using var monitor = new
AuxiliaryBackchannelMonitor
(
624
using var monitor = new
AuxiliaryBackchannelMonitor
(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
669
using var monitor = new
AuxiliaryBackchannelMonitor
(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
44 references to AuxiliaryBackchannelMonitor
aspire (5)
Backchannel\AppHostConnectionResolver.cs (1)
287
/// <see cref="
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory"/> without the
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
26
ILogger<
AuxiliaryBackchannelMonitor
> logger,
Program.cs (3)
527
builder.Services.AddSingleton<
AuxiliaryBackchannelMonitor
>();
528
builder.Services.AddSingleton<IAuxiliaryBackchannelMonitor>(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
529
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);
64
using
var
monitor = new AuxiliaryBackchannelMonitor(
65
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
267
using
var
monitor = new AuxiliaryBackchannelMonitor(
268
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), time, profiling);
353
using
var
monitor = new AuxiliaryBackchannelMonitor(
354
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
389
using
var
monitor = new AuxiliaryBackchannelMonitor(
390
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), new FakeTimeProvider(), profiling);
414
using
var
monitor = new AuxiliaryBackchannelMonitor(
415
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), time, profiling);
461
using
var
monitor = new AuxiliaryBackchannelMonitor(
462
new CapturingLogger<
AuxiliaryBackchannelMonitor
>(), CreateExecutionContext(homeDirectory), time, profiling);
496
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaReal, symlinkDirectory));
500
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaSymlink, realDirectory.FullName));
517
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(outsideAppHost, workingDirectory));
528
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(null, Path.GetTempPath()));
529
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(string.Empty, Path.GetTempPath()));
546
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, primaryRoot));
547
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, primaryRoot));
548
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, worktreeRoot));
549
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, worktreeRoot));
571
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
593
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, worktreeRoot));
594
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
621
var logger = new CapturingLogger<
AuxiliaryBackchannelMonitor
>();
624
using
var
monitor = new AuxiliaryBackchannelMonitor(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
666
var logger = new CapturingLogger<
AuxiliaryBackchannelMonitor
>();
669
using
var
monitor = new AuxiliaryBackchannelMonitor(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
700
private static async Task WaitForConnectAttemptsAsync(CapturingLogger<
AuxiliaryBackchannelMonitor
> logger, string socketPath, int expectedAttempts)
717
private static int CountConnectAttempts(CapturingLogger<
AuxiliaryBackchannelMonitor
> logger, string socketPath)
719
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))