21 references to AuxiliaryBackchannelMonitor
aspire (5)
Backchannel\AppHostConnectionResolver.cs (1)
284
/// <see cref="
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory"/> without the
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
26
ILogger<
AuxiliaryBackchannelMonitor
> logger,
Program.cs (3)
492
builder.Services.AddSingleton<
AuxiliaryBackchannelMonitor
>();
493
builder.Services.AddSingleton<IAuxiliaryBackchannelMonitor>(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
494
builder.Services.AddHostedService(sp => sp.GetRequiredService<
AuxiliaryBackchannelMonitor
>());
Aspire.Cli.Tests (16)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (12)
30
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaReal, symlinkDirectory));
34
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(appHostPathViaSymlink, realDirectory.FullName));
51
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(outsideAppHost, workingDirectory));
62
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(null, Path.GetTempPath()));
63
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(string.Empty, Path.GetTempPath()));
80
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, primaryRoot));
81
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, primaryRoot));
82
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(nestedAppHost, worktreeRoot));
83
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(primaryAppHost, worktreeRoot));
105
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
127
Assert.True(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, worktreeRoot));
128
Assert.False(
AuxiliaryBackchannelMonitor
.IsAppHostInScopeOfDirectory(submoduleAppHost, primaryRoot));
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));