19 references to IsAppHostInScopeOfDirectory
aspire (3)
Backchannel\AppHostConnectionResolver.cs (1)
284
/// <see cref="AuxiliaryBackchannelMonitor.
IsAppHostInScopeOfDirectory
"/> without the
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
189
.Where(c =>
IsAppHostInScopeOfDirectory
(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))
566
=>
IsAppHostInScopeOfDirectory
(appHostPath, executionContext.WorkingDirectory.FullName);
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));