1 write to BaseUri
Microsoft.AspNetCore.Components (1)
NavigationManager.cs (1)
237BaseUri = baseUri;
16 references to BaseUri
Aspire.Dashboard (1)
Components\Layout\MainLayout.razor.cs (1)
95if (TargetLocationInterceptor.InterceptTargetLocation(NavigationManager.BaseUri, context.TargetLocation, out var newTargetLocation))
Microsoft.AspNetCore.Components (9)
NavigationManager.cs (8)
68/// Gets or sets the current base URI. The <see cref="BaseUri" /> is always represented as an absolute URI in string form with trailing slash. 72/// Setting <see cref="BaseUri" /> will not trigger the <see cref="LocationChanged" /> event. 124/// (as returned by <see cref="BaseUri"/>).</param> 133/// (as returned by <see cref="BaseUri"/>).</param> 160/// (as returned by <see cref="BaseUri"/>).</param> 172/// (as returned by <see cref="BaseUri"/>).</param> 185/// (as returned by <see cref="BaseUri"/>).</param> 262/// Given a base URI (e.g., one previously returned by <see cref="BaseUri"/>),
Routing\Router.cs (1)
115_baseUri = NavigationManager.BaseUri;
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
88navigationManager.OnNotFound += async (sender, args) => await SetNotFoundResponseAsync(navigationManager.BaseUri);
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHostBuilder.cs (1)
175var hostEnvironment = new WebAssemblyHostEnvironment(applicationEnvironment, WebAssemblyNavigationManager.Instance.BaseUri);
HotReload\WebAssemblyHotReload.cs (1)
90BaseAddress = new Uri(WebAssemblyNavigationManager.Instance.BaseUri, UriKind.Absolute)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostBuilderTest.cs (1)
149Assert.Equal("https://www.example.com/", navigationManager.BaseUri);
MyFrontend (2)
Components\NavigationManagerExtensions.cs (2)
9if (uri.StartsWith(navigationManager.BaseUri, StringComparison.Ordinal)) 16var message = $"The URI '{uri}' is not contained by the base URI '{navigationManager.BaseUri}'.";