2 instantiations of AuxiliaryBackchannelMonitor
Aspire.Cli.Tests (2)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (2)
164
using var monitor = new
AuxiliaryBackchannelMonitor
(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
209
using var monitor = new
AuxiliaryBackchannelMonitor
(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
30 references to AuxiliaryBackchannelMonitor
aspire (5)
Backchannel\AppHostConnectionResolver.cs (1)
285
/// <see cref="
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory"/> without the
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
25
ILogger<
AuxiliaryBackchannelMonitor
> logger,
Program.cs (3)
524
builder.Services.AddSingleton<
AuxiliaryBackchannelMonitor
>();
525
builder.Services.AddSingleton<IAuxiliaryBackchannelMonitor>(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
526
builder.Services.AddHostedService(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
Aspire.Cli.Tests (25)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (19)
36
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaReal, symlinkDirectory));
40
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaSymlink, realDirectory.FullName));
57
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(outsideAppHost, workingDirectory));
68
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(null, Path.GetTempPath()));
69
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(string.Empty, Path.GetTempPath()));
86
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, primaryRoot));
87
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, primaryRoot));
88
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, worktreeRoot));
89
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, worktreeRoot));
111
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
133
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, worktreeRoot));
134
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
161
var logger = new CapturingLogger<
AuxiliaryBackchannelMonitor
>();
164
using
var
monitor = new AuxiliaryBackchannelMonitor(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
206
var logger = new CapturingLogger<
AuxiliaryBackchannelMonitor
>();
209
using
var
monitor = new AuxiliaryBackchannelMonitor(logger, CreateExecutionContext(homeDirectory), timeProvider, profilingTelemetry);
240
private static async Task WaitForConnectAttemptsAsync(CapturingLogger<
AuxiliaryBackchannelMonitor
> logger, string socketPath, int expectedAttempts)
257
private static int CountConnectAttempts(CapturingLogger<
AuxiliaryBackchannelMonitor
> logger, string socketPath)
259
entry.EventId ==
AuxiliaryBackchannelMonitor
.ConnectingToSocketEvent &&
Commands\StopCommandTests.cs (4)
237
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, workspace.WorkspaceRoot.FullName));
238
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, workspace.WorkspaceRoot.FullName));
244
isInScope:
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, workspace.WorkspaceRoot.FullName));
249
isInScope:
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, workspace.WorkspaceRoot.FullName));
TestServices\TestAuxiliaryBackchannelMonitor.cs (2)
61
var connection =
AuxiliaryBackchannelMonitor
.SelectConnection(Connections, ref selectedAppHostPath);
70
.Where(c =>
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))