10 references to InterceptTargetLocation
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (1)
168
if (TargetLocationInterceptor.
InterceptTargetLocation
(NavigationManager.BaseUri, context.TargetLocation, out var newTargetLocation))
Components\Legacy\Layout\LegacyMainLayout.razor.cs (1)
155
TargetLocationInterceptor.
InterceptTargetLocation
(NavigationManager.BaseUri, targetLocation, out var standaloneTarget))
Aspire.Dashboard.Tests (8)
Model\TargetLocationInterceptorTests.cs (8)
14
Assert.True(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost", "/", out var newTargetLocation));
21
Assert.True(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost", "http://localhost/", out var newTargetLocation));
28
Assert.True(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost", "http://localhost", out var newTargetLocation));
35
Assert.True(TargetLocationInterceptor.
InterceptTargetLocation
("http://LOCALHOST", "http://localhost/", out var newTargetLocation));
42
Assert.False(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost", TargetLocationInterceptor.StructuredLogsPath, out _));
48
Assert.False(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost", "http://localhost:8888/", out _));
54
Assert.False(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost/", "http://localhost:8888/", out _));
93
Assert.True(TargetLocationInterceptor.
InterceptTargetLocation
("http://localhost", "http://localhost/legacy", out var newTargetLocation));